]> git.mxchange.org Git - mailer.git/blobdiff - inc/pool-update.php
Several bugfixes/improvements: (again)
[mailer.git] / inc / pool-update.php
index 628b18a310a0e99005e08ef57234f39b004f424d..32256682f5370933dbb4853696c23d9f8e04a4c5 100644 (file)
@@ -43,26 +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-");
 
-// Include all
-foreach ($INC_POOL as $fqfn) {
-       // Include the file
-       require_once($fqfn);
-} // END - foreach
-
-// Remove array
-unset($INC_POOL);
+// Run the filter
+RUN_FILTER('load_includes', $INC_POOL);
 
-// Remove message (IMPORTANT!)
-unset($msg);
+// Remove counter again
+unset($GLOBALS['pool_cnt']);
 
 //
 ?>