From 42d30b417c8a34c37d10a82b0e7390327ff9d86c Mon Sep 17 00:00:00 2001 From: quix0r Date: Wed, 24 Apr 2013 02:47:56 +0000 Subject: [PATCH] Allow to find files where file extension is not important --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index 45ef7fce2c..c227a23925 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1865,7 +1865,7 @@ function getArrayFromDirectory ($baseDir, $prefix, $fileIncludeDirs = FALSE, $ad // We found .php file but should not search for them, why? reportBug(__FUNCTION__, __LINE__, 'We should find files with extension=' . $extension . ', but we found a PHP script. (baseFile=' . $baseFile . ')'); } - } elseif ($fileExtension == $extension) { + } elseif (($fileExtension == $extension) || (empty($extension))) { // Other, generic file found array_push($foundMatches, $fileName); } -- 2.39.5