mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 12:28:52 +00:00
[ticket/11465] Check if class exists before including info file
PHPBB3-11465
This commit is contained in:
parent
bc423f0d97
commit
7240759e34
1 changed files with 1 additions and 1 deletions
|
@ -579,7 +579,7 @@ class acp_modules
|
||||||
{
|
{
|
||||||
$info_class_file = str_replace("phpbb_{$module_class}_info_", '', $cur_module);
|
$info_class_file = str_replace("phpbb_{$module_class}_info_", '', $cur_module);
|
||||||
$info_class = $info_class_file . '_info';
|
$info_class = $info_class_file . '_info';
|
||||||
if (file_exists($directory . $info_class_file . '.' . $phpEx))
|
if (!class_exists($info_class) && file_exists($directory . $info_class_file . '.' . $phpEx))
|
||||||
{
|
{
|
||||||
include($directory . $info_class_file . '.' . $phpEx);
|
include($directory . $info_class_file . '.' . $phpEx);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue