From cd522a11f3f40e0429bebb7bd7cfee1b442a83ef Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Fri, 14 Oct 2011 01:31:24 +0200 Subject: [feature/extension-manager] Properly remove old ACP language loading code PHPBB3-10323 --- phpBB/includes/functions_module.php | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'phpBB/includes/functions_module.php') diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php index 946e7d2b8d..e2b2d80b3e 100644 --- a/phpBB/includes/functions_module.php +++ b/phpBB/includes/functions_module.php @@ -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; -- cgit v1.2.1