summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/modules.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/modules.php b/utils/modules.php
index a2051b3..c363e6d 100644
--- a/utils/modules.php
+++ b/utils/modules.php
@@ -10,7 +10,8 @@ function getModuleList()
$d = opendir($MODULES_DIR);
while(false !== ($f = readdir($d))) {
- if($f == '.' || $f == '..') continue;
+ if(is_dir($f)) continue;
+ if(substr($f, strlen($f) - 4, 4) != ".php") continue;
array_push($mlist, basename($f, ".php"));
}
closedir($d);