mirror of
https://github.com/e107inc/e107.git
synced 2025-07-24 16:31:48 +02:00
Issue #6 LAN BC Fixes.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
@@ -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;
|
||||
|
||||
|
||||
|
||||
?>
|
||||
?>
|
Reference in New Issue
Block a user