mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/11465] The info file does not have _info suffix
PHPBB3-11465
This commit is contained in:
@@ -577,10 +577,11 @@ class acp_modules
|
|||||||
// manually because it does not support auto loading
|
// manually because it does not support auto loading
|
||||||
if (!class_exists($info_class))
|
if (!class_exists($info_class))
|
||||||
{
|
{
|
||||||
$info_class = str_replace("phpbb_{$module_class}_info_", '', $cur_module) . '_info';
|
$info_class_file = str_replace("phpbb_{$module_class}_info_", '', $cur_module);
|
||||||
if (file_exists($directory . $info_class . '.' . $phpEx))
|
$info_class = $info_class_file . '_info';
|
||||||
|
if (file_exists($directory . $info_class_file . '.' . $phpEx))
|
||||||
{
|
{
|
||||||
include($directory . $info_class . '.' . $phpEx);
|
include($directory . $info_class_file . '.' . $phpEx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user