]> git.mxchange.org Git - mailer.git/commitdiff
Parameter abortOnMiss renamed to strict, fixes for to strict getModule() call in...
authorRoland Häder <roland@mxchange.org>
Sat, 31 Oct 2009 15:56:52 +0000 (15:56 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 31 Oct 2009 15:56:52 +0000 (15:56 +0000)
inc/functions.php
inc/wrapper-functions.php

index 020ceb819a9192daa9c66daae136970f06ec8d3d..6cb2c7e5645fbf46cb4cedffd99011a4198e7f99 100644 (file)
@@ -2972,7 +2972,7 @@ function logDebugMessage ($funcFile, $line, $message, $force=true) {
 
                // Log this message away, we better don't call app_die() here to prevent an endless loop
                $fp = fopen(getConfig('CACHE_PATH') . 'debug.log', 'a') or die(__FUNCTION__.'['.__LINE__.']: Cannot write logfile debug.log!');
 
                // Log this message away, we better don't call app_die() here to prevent an endless loop
                $fp = fopen(getConfig('CACHE_PATH') . 'debug.log', 'a') or die(__FUNCTION__.'['.__LINE__.']: Cannot write logfile debug.log!');
-               fwrite($fp, date('d.m.Y|H:i:s', time()) . '|' . getModule() . '|' . basename($funcFile) . '|' . $line . '|' . $message . "\n");
+               fwrite($fp, date('d.m.Y|H:i:s', time()) . '|' . getModule(false) . '|' . basename($funcFile) . '|' . $line . '|' . $message . "\n");
                fclose($fp);
        } // END - if
 }
                fclose($fp);
        } // END - if
 }
index c7711857d65a7010d4f249c7e64b5e3320931989..f8b068dc3523cd20ea144b4de3b66d1935c90445 100644 (file)
@@ -488,12 +488,12 @@ function setWhatFromConfig ($configEntry) {
 }
 
 // Checks wether what is set and optionally aborts on miss
 }
 
 // Checks wether what is set and optionally aborts on miss
-function isWhatSet ($abortOnMiss =  false) {
+function isWhatSet ($strict =  false) {
        // Check for it
        $isset = (isset($GLOBALS['what']));
 
        // Should we abort here?
        // Check for it
        $isset = (isset($GLOBALS['what']));
 
        // Should we abort here?
-       if (($abortOnMiss === true) && ($isset === false)) {
+       if (($strict === true) && ($isset === false)) {
                // Output backtrace
                debug_report_bug('what is empty.');
        } // END - if
                // Output backtrace
                debug_report_bug('what is empty.');
        } // END - if
@@ -523,12 +523,12 @@ function setAction ($newAction) {
 }
 
 // Checks wether action is set and optionally aborts on miss
 }
 
 // Checks wether action is set and optionally aborts on miss
-function isActionSet ($abortOnMiss =  false) {
+function isActionSet ($strict =  false) {
        // Check for it
        $isset = (isset($GLOBALS['action']));
 
        // Should we abort here?
        // Check for it
        $isset = (isset($GLOBALS['action']));
 
        // Should we abort here?
-       if (($abortOnMiss === true) && ($isset === false)) {
+       if (($strict === true) && ($isset === false)) {
                // Output backtrace
                debug_report_bug('action is empty.');
        } // END - if
                // Output backtrace
                debug_report_bug('action is empty.');
        } // END - if
@@ -538,12 +538,12 @@ function isActionSet ($abortOnMiss =  false) {
 }
 
 // Getter for 'module' value
 }
 
 // Getter for 'module' value
-function getModule () {
+function getModule ($strict = true) {
        // Default is null
        $module = null;
 
        // Is the value set?
        // Default is null
        $module = null;
 
        // Is the value set?
-       if (isModuleSet(true)) {
+       if (isModuleSet($strict)) {
                // Then use it
                $module = $GLOBALS['module'];
        } // END - if
                // Then use it
                $module = $GLOBALS['module'];
        } // END - if
@@ -559,12 +559,12 @@ function setModule ($newModule) {
 }
 
 // Checks wether module is set and optionally aborts on miss
 }
 
 // Checks wether module is set and optionally aborts on miss
-function isModuleSet ($abortOnMiss =  false) {
+function isModuleSet ($strict =  false) {
        // Check for it
        $isset = (!empty($GLOBALS['module']));
 
        // Should we abort here?
        // Check for it
        $isset = (!empty($GLOBALS['module']));
 
        // Should we abort here?
-       if (($abortOnMiss === true) && ($isset === false)) {
+       if (($strict === true) && ($isset === false)) {
                // Output backtrace
                print 'Module not set!<pre>';
                debug_print_backtrace();
                // Output backtrace
                print 'Module not set!<pre>';
                debug_print_backtrace();
@@ -597,12 +597,12 @@ function setOutputMode ($newOutputMode) {
 }
 
 // Checks wether output_mode is set and optionally aborts on miss
 }
 
 // Checks wether output_mode is set and optionally aborts on miss
-function isOutputModeSet ($abortOnMiss =  false) {
+function isOutputModeSet ($strict =  false) {
        // Check for it
        $isset = (isset($GLOBALS['output_mode']));
 
        // Should we abort here?
        // Check for it
        $isset = (isset($GLOBALS['output_mode']));
 
        // Should we abort here?
-       if (($abortOnMiss === true) && ($isset === false)) {
+       if (($strict === true) && ($isset === false)) {
                // Output backtrace
                debug_report_bug('output_mode is empty.');
        } // END - if
                // Output backtrace
                debug_report_bug('output_mode is empty.');
        } // END - if