Fix for cache loader
authorRoland Häder <roland@mxchange.org>
Sun, 14 Sep 2008 18:35:37 +0000 (18:35 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 14 Sep 2008 18:35:37 +0000 (18:35 +0000)
inc/databases.php
inc/functions.php

index 6e1f7aa8e9f781b7ddc4911004e250d6b5352599..5eeb9784118cf9fd599794ad534bb5a018d545ab 100644 (file)
@@ -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);
index cc64df1b28519495857eed577b0e920cf0128865..6f5abbff722993c6df4441b34c4b1128446a96d9 100644 (file)
@@ -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}<br />\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