mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 04:23:38 +01:00
[feature/extension-manager] Properly remove old ACP language loading code
PHPBB3-10323
This commit is contained in:
parent
4fb9f2101d
commit
cd522a11f3
@ -865,30 +865,6 @@ class p_master
|
||||
function add_mod_info($module_class)
|
||||
{
|
||||
global $user, $phpEx;
|
||||
/*
|
||||
if (file_exists($user->lang_path . $user->lang_name . '/mods'))
|
||||
{
|
||||
$add_files = array();
|
||||
|
||||
$dir = @opendir($user->lang_path . $user->lang_name . '/mods');
|
||||
|
||||
if ($dir)
|
||||
{
|
||||
while (($entry = readdir($dir)) !== false)
|
||||
{
|
||||
if (strpos($entry, 'info_' . strtolower($module_class) . '_') === 0 && substr(strrchr($entry, '.'), 1) == $phpEx)
|
||||
{
|
||||
$add_files[] = 'mods/' . substr(basename($entry), 0, -(strlen($phpEx) + 1));
|
||||
}
|
||||
}
|
||||
closedir($dir);
|
||||
}
|
||||
|
||||
if (sizeof($add_files))
|
||||
{
|
||||
$user->add_lang($add_files);
|
||||
}
|
||||
}*/
|
||||
|
||||
global $phpbb_extension_manager;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user