X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fpool-update.php;h=93e986148ad7a6b01220de3b9790791d1705205e;hb=7989ec603971c0dc8dc35d8be4e72f8098b83baa;hp=f54f84bf4d95053040c7be1e4920084ac6548d2d;hpb=39172de4ecec2f6ddc597a5ae439e7aef79c75ed;p=mailer.git diff --git a/inc/pool-update.php b/inc/pool-update.php index f54f84bf4d..93e986148a 100644 --- a/inc/pool-update.php +++ b/inc/pool-update.php @@ -43,20 +43,17 @@ if (defined('__DAILY_RESET')) { return false; } // END - if -// Set some global variables -global $cnt, $msg; - -// Init counter and message -$cnt = 0; $msg = ""; +// Init counter +$GLOBALS['pool_cnt'] = 0; // Load more cache includes -$INC_POOL = GET_DIR_AS_ARRAY(PATH."inc/pool/", "pool-"); +$INC_POOL = GET_DIR_AS_ARRAY(constant('PATH')."inc/pool/", "pool-"); // Run the filter -RUN_FILTER('load_includes'); +RUN_FILTER('load_includes', $INC_POOL); -// Remove message (IMPORTANT!) -unset($msg); +// Remove counter again +unset($GLOBALS['pool_cnt']); // ?>