projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2f7fcd4
)
Allow to find files where file extension is not important
author
Roland Häder
<roland@mxchange.org>
Wed, 24 Apr 2013 02:47:56 +0000
(
02:47
+0000)
committer
Roland Häder
<roland@mxchange.org>
Wed, 24 Apr 2013 02:47:56 +0000
(
02:47
+0000)
inc/functions.php
patch
|
blob
|
history
diff --git
a/inc/functions.php
b/inc/functions.php
index 45ef7fce2cb93b47e53e3ccc018d324cddd350b0..c227a23925e6d5069a84a1108ea06b4c353727d4 100644
(file)
--- 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);
}