diff --git a/e107_handlers/language_class.php b/e107_handlers/language_class.php index 59a0c54a6..ad2d26b3b 100644 --- a/e107_handlers/language_class.php +++ b/e107_handlers/language_class.php @@ -666,16 +666,19 @@ class language{ } - - - public function bcDefs() + /** + * Define Legacy LAN constants based on a supplied array. + * @param null $bcList + */ + public function bcDefs($bcList = null) { - $bcList = array( - 'LAN_180' => 'LAN_SEARCH' - - ); - + if(empty($bcList)) + { + $bcList = array( + 'LAN_180' => 'LAN_SEARCH' + ); + } foreach($bcList as $old => $new) { diff --git a/e107_plugins/login_menu/login_menu_shortcodes.php b/e107_plugins/login_menu/login_menu_shortcodes.php index f72199a81..34a46c446 100755 --- a/e107_plugins/login_menu/login_menu_shortcodes.php +++ b/e107_plugins/login_menu/login_menu_shortcodes.php @@ -24,15 +24,28 @@ * * @package e107_plugins * @subpackage login - * @version $Id$; * - * @todo Convert to new format */ if (!defined('e107_INIT')) { exit(); } global $tp; +// BC LAN Fix. + +$bcDefs = array( +'LOGIN_MENU_L1' => 'LAN_LOGINMENU_1', +'LOGIN_MENU_L2' => 'LAN_LOGINMENU_2', +'LOGIN_MENU_L3' => 'LAN_LOGINMENU_3', +'LOGIN_MENU_L4' => 'LAN_LOGINMENU_4', +'LOGIN_MENU_L6' => 'LAN_LOGINMENU_6', +'LOGIN_MENU_L40' => 'LAN_LOGINMENU_40', +'LOGIN_MENU_L51' => 'LAN_LOGINMENU_51' +); + +e107::getLanguage()->bcDefs($bcDefs); + + //$login_menu_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__); if(!class_exists('login_menu_shortcodes')) { @@ -442,4 +455,4 @@ global $tp; -?> +?> \ No newline at end of file