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:
@@ -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';
|
||||
|
||||
|
Reference in New Issue
Block a user