From: Roland Häder Date: Sun, 14 Sep 2008 18:35:37 +0000 (+0000) Subject: Fix for cache loader X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b80f1343c1e7628379826eba9f4111b59c38306f;p=mailer.git Fix for cache loader --- diff --git a/inc/databases.php b/inc/databases.php index 6e1f7aa8e9..5eeb978411 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -114,7 +114,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "326"); +define('CURR_SVN_REVISION', "327"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/functions.php b/inc/functions.php index cc64df1b28..6f5abbff72 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -2290,6 +2290,7 @@ function GET_DIR_AS_ARRAY ($baseDir, $prefix) { $file = $baseDir.$baseFile; // Is this a valid reset file? + //* DEBUG: */ echo __FUNCTION__.":baseDir={$baseDir},prefix={$prefix},baseFile={$baseFile}
\n"; if ((is_file($file)) && (is_readable($file)) && (substr($baseFile, 0, strlen($prefix)) == $prefix) && (substr($baseFile, -4, 4) == ".php")) { // Remove both for extension name $extName = substr($baseFile, strlen($prefix), -4); @@ -2301,6 +2302,9 @@ function GET_DIR_AS_ARRAY ($baseDir, $prefix) { if (($extId > 0) && (EXT_IS_ACTIVE($extName))) { // Then add this file $INCs[] = $file; + } elseif ($extId == 0) { + // Add non-extension files as well + $INCs[] = $file; } } // END - if } // END - while