New wrapper functions introduced
[mailer.git] / inc / wrapper-functions.php
index b101e22c8f9632b9575fd889ff8e0f80dcc09227..cdc48f6c5466c2e32e61e31b63d71417bbc56836 100644 (file)
@@ -559,7 +559,7 @@ function getAction ($strict = true) {
        $action = null;
 
        // Is the value set?
-       if (isActionSet(($strict) && (getScriptOutputMode() == 0))) {
+       if (isActionSet(($strict) && (isHtmlOutputMode()))) {
                // Then use it
                $action = $GLOBALS['action'];
        } // END - if
@@ -1898,5 +1898,23 @@ function isExtensionTask ($content) {
        return $GLOBALS['is_extension_task'][$content['task_type'] . '_' . $content['infos']];
 }
 
+// Wrapper to check if output mode is CSS
+function isCssOutputMode () {
+       // Determine it
+       return (getScriptOutputMode() == 1);
+}
+
+// Wrapper to check if output mode is HTML
+function isHtmlOutputMode () {
+       // Determine it
+       return (getScriptOutputMode() == 0);
+}
+
+// Wrapper to check if output mode is RAW
+function isRawOutputMode () {
+       // Determine it
+       return (getScriptOutputMode() == -1);
+}
+
 // [EOF]
 ?>