1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

- only include modules with the correct extension. ;)

- fix evaluating if module is enabled or disabled (now disables all childs if parent/category is disabled)


git-svn-id: file:///svn/phpbb/trunk@5376 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2005-12-25 11:10:06 +00:00
parent 2c25e0f233
commit b9b70c9ceb
2 changed files with 26 additions and 3 deletions

View File

@@ -573,7 +573,7 @@ class acp_modules
while ($file = readdir($dh))
{
// Is module?
if (strpos($file, $this->module_class . '_') === 0)
if (preg_match('/^' . $this->module_class . '_.+\.' . $phpEx . '$/', $file))
{
$class = str_replace(".$phpEx", '', $file) . '_info';