mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Deprecated function include_lan() cleanup. Replaced with e107::lan();
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
/*
|
||||
* e107 website system
|
||||
*
|
||||
* Copyright (C) 2008-2013 e107 Inc (e107.org)
|
||||
* Copyright (C) 2008-2014 e107 Inc (e107.org)
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
@@ -10,35 +10,24 @@
|
||||
*
|
||||
*/
|
||||
|
||||
//@TODO make it 0.8 compatible
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
|
||||
if (ADMIN == TRUE)
|
||||
{
|
||||
// We're not in admin - load generic admin phrases
|
||||
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/admin/lan_admin.php');
|
||||
|
||||
$tp = e107::getParser();
|
||||
$pref = e107::getPref();
|
||||
$ns = e107::getRender();
|
||||
|
||||
$nav = e107::getNav();
|
||||
|
||||
// $admin = $nav->adminLinks('assoc');
|
||||
// $plugins = $nav->pluginLinks('assoc');
|
||||
e107::lan('core','admin', true); // We're not in admin - load generic admin phrases
|
||||
|
||||
// $array_functions = array_merge($admin, $plugins);
|
||||
$tp = e107::getParser();
|
||||
$pref = e107::getPref();
|
||||
$ns = e107::getRender();
|
||||
$nav = e107::getNav();
|
||||
|
||||
|
||||
$array_functions = $nav->adminLinks();
|
||||
|
||||
// print_a($array_functions);
|
||||
|
||||
// asort($array_functions);
|
||||
// ksort($array_functions, 'title'); //FIXME Improve ordering.
|
||||
|
||||
//$array_functions = asortbyindex($array_functions, 1);
|
||||
|
||||
$amtext = "<div style='text-align:center'>
|
||||
$amtext = "<div class='text-center' style='text-align:center'>
|
||||
<select name='activate' onchange='urljump(this.options[selectedIndex].value)' class='tbox'>
|
||||
<option>".LAN_SELECT."</option>\n";
|
||||
foreach ($array_functions as $link_value)
|
||||
|
Reference in New Issue
Block a user