aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/elgglib.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 5571339cd..8be1ec226 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1158,12 +1158,14 @@
*/
function get_library_files($directory, $file_exceptions = array(), $file_list = array()) {
$extensions_allowed = array('.php');
- if (is_file($directory) && !in_array($directory,$file_exceptions)) {
+ /*if (is_file($directory) && !in_array($directory,$file_exceptions)) {
$file_list[] = $directory;
- } else if ($handle = opendir($directory)) {
+ } else */
+ if ($handle = opendir($directory)) {
while ($file = readdir($handle)) {
if (in_array(strrchr($file, '.'), $extensions_allowed) && !in_array($file,$file_exceptions)) {
- $file_list = get_library_files($directory . "/" . $file, $file_exceptions, $file_list);
+ $file_list[] = $directory . "/" . $file;
+ //$file_list = get_library_files($directory . "/" . $file, $file_exceptions, $file_list);
}
}
}