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:
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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'))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user