1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-29 19:00:26 +02:00

Issue #6 LAN BC Fixes.

This commit is contained in:
Cameron
2015-08-07 12:23:09 -07:00
parent f2eb9b9769
commit 62c50975f8
2 changed files with 27 additions and 11 deletions

View File

@@ -666,16 +666,19 @@ class language{
} }
/**
* Define Legacy LAN constants based on a supplied array.
public function bcDefs() * @param null $bcList
*/
public function bcDefs($bcList = null)
{ {
if(empty($bcList))
{
$bcList = array( $bcList = array(
'LAN_180' => 'LAN_SEARCH' 'LAN_180' => 'LAN_SEARCH'
); );
}
foreach($bcList as $old => $new) foreach($bcList as $old => $new)
{ {

View File

@@ -24,15 +24,28 @@
* *
* @package e107_plugins * @package e107_plugins
* @subpackage login * @subpackage login
* @version $Id$;
* *
* @todo Convert to new format
*/ */
if (!defined('e107_INIT')) { exit(); } if (!defined('e107_INIT')) { exit(); }
global $tp; 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__); //$login_menu_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__);
if(!class_exists('login_menu_shortcodes')) if(!class_exists('login_menu_shortcodes'))
{ {