mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-04 05:25:01 +02:00
[ticket/11363] Fix a couple bugs and throw errors if the file not found
PHPBB3-11363
This commit is contained in:
parent
d296e809d5
commit
c3434dec40
@ -189,8 +189,14 @@ class phpbb_db_migration_tool_module implements phpbb_db_migration_tool_interfac
|
||||
}
|
||||
$acp_modules = new acp_modules();
|
||||
$module = $acp_modules->get_module_infos($basename, $class);
|
||||
$module = $module[$basename];
|
||||
unset($acp_modules);
|
||||
|
||||
if (empty($module))
|
||||
{
|
||||
throw new phpbb_db_migration_exception('MODULE_INFO_FILE_NOT_EXIST', $class, $basename);
|
||||
}
|
||||
|
||||
$result = '';
|
||||
foreach ($module['modes'] as $mode => $module_info)
|
||||
{
|
||||
@ -367,8 +373,14 @@ class phpbb_db_migration_tool_module implements phpbb_db_migration_tool_interfac
|
||||
}
|
||||
$acp_modules = new acp_modules();
|
||||
$module_info = $acp_modules->get_module_infos($basename, $class);
|
||||
$module_info = $module_info[$basename];
|
||||
unset($acp_modules);
|
||||
|
||||
if (empty($module_info))
|
||||
{
|
||||
throw new phpbb_db_migration_exception('MODULE_INFO_FILE_NOT_EXIST', $class, $basename);
|
||||
}
|
||||
|
||||
foreach ($module_info['modes'] as $mode => $info)
|
||||
{
|
||||
if (!isset($module['modes']) || in_array($mode, $module['modes']))
|
||||
|
Loading…
x
Reference in New Issue
Block a user