getAction() now allows non-strict checking of existence of 'action' cache element...
[mailer.git] / inc / wrapper-functions.php
index 48db9bbc05b706263abad490660594bfce5b9fb4..9a885ede7f13c7eaad08ed1403536c15132497ec 100644 (file)
@@ -563,12 +563,12 @@ function isWhatSet ($strict =  false) {
 }
 
 // Getter for 'action' value
-function getAction () {
+function getAction ($strict = true) {
        // Default is null
        $action = null;
 
        // Is the value set?
-       if (isActionSet(true)) {
+       if (isActionSet(($strict) && (getOutputMode() == 0))) {
                // Then use it
                $action = $GLOBALS['action'];
        } // END - if