mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11465] The info file does not have _info suffix
PHPBB3-11465
This commit is contained in:
parent
6110380a35
commit
78bcc31a5d
1 changed files with 4 additions and 3 deletions
|
@ -577,10 +577,11 @@ class acp_modules
|
|||
// manually because it does not support auto loading
|
||||
if (!class_exists($info_class))
|
||||
{
|
||||
$info_class = str_replace("phpbb_{$module_class}_info_", '', $cur_module) . '_info';
|
||||
if (file_exists($directory . $info_class . '.' . $phpEx))
|
||||
$info_class_file = str_replace("phpbb_{$module_class}_info_", '', $cur_module);
|
||||
$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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue