X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=7e2856402937a850599a48ed7f7f3b9287be0fce;hb=e1235e719b767d6693976c3d24489beaa38a3667;hp=c7e4978ce06d380518dae021891ee4699ff816be;hpb=baaf454ac1302f28e3f5b1844a9b512a10883d86;p=mailer.git diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index c7e4978ce0..7e28564029 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -1,7 +1,7 @@ '; - debug_print_backtrace(); - die(' 1)); @@ -753,7 +742,7 @@ function setCurrentUserId ($userid) { // Getter for current userid function getCurrentUserId () { // Userid must be set before it can be used - if (!isset($GLOBALS['current_userid'])) { + if (!isCurrentUserIdSet()) { // Not set debug_report_bug('User id is not set.'); } // END - if @@ -762,5 +751,15 @@ function getCurrentUserId () { return $GLOBALS['current_userid']; } +// Checks if current userid is set +function isCurrentUserIdSet () { + return isset($GLOBALS['current_userid']); +} + +// Checks wether we are debugging template cache +function isDebuggingTemplateCache () { + return (getConfig('DEBUG_TEMPLATE_CACHE') == 'Y'); +} + // [EOF] ?>