// 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
}
}
// 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?
- if (($abortOnMiss === true) && ($isset === false)) {
+ if (($strict === true) && ($isset === false)) {
// Output backtrace
debug_report_bug('what is empty.');
} // END - if
}
// 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?
- if (($abortOnMiss === true) && ($isset === false)) {
+ if (($strict === true) && ($isset === false)) {
// Output backtrace
debug_report_bug('action is empty.');
} // END - if
}
// Getter for 'module' value
-function getModule () {
+function getModule ($strict = true) {
// Default is null
$module = null;
// Is the value set?
- if (isModuleSet(true)) {
+ if (isModuleSet($strict)) {
// Then use it
$module = $GLOBALS['module'];
} // END - if
}
// 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?
- if (($abortOnMiss === true) && ($isset === false)) {
+ if (($strict === true) && ($isset === false)) {
// Output backtrace
print 'Module not set!<pre>';
debug_print_backtrace();
}
// 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?
- if (($abortOnMiss === true) && ($isset === false)) {
+ if (($strict === true) && ($isset === false)) {
// Output backtrace
debug_report_bug('output_mode is empty.');
} // END - if