From ed56fdb5b5dca92aaa278d9ed369719439f72769 Mon Sep 17 00:00:00 2001 From: Abdulrahman Date: Tue, 19 Feb 2019 19:07:01 +0300 Subject: [PATCH] fixes --- admin/index.php | 4 +-- plugins/menu_toggle/admin_menus_toggle.html | 3 +- plugins/menu_toggle/init.php | 33 ++++++++++++++++++--- plugins/menu_toggle/menus_toggle.php | 4 +++ 4 files changed, 36 insertions(+), 8 deletions(-) diff --git a/admin/index.php b/admin/index.php index 65f1d06..d7d7574 100755 --- a/admin/index.php +++ b/admin/index.php @@ -128,12 +128,10 @@ if( is_array($plugin_run_result = Plugins::getInstance()->run('before_display_template_admin_page', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook - - //prevent indexing this page by bots header('HTTP/1.0 401 Unauthorized'); if (ig('_ajax_') || ig('check_msgs')) { - echo_ajax(401, 'Unauthorized'); + echo_ajax(401, $lang['HV_NOT_PRVLG_ACCESS']); } else { diff --git a/plugins/menu_toggle/admin_menus_toggle.html b/plugins/menu_toggle/admin_menus_toggle.html index 37b2713..4d13b30 100644 --- a/plugins/menu_toggle/admin_menus_toggle.html +++ b/plugins/menu_toggle/admin_menus_toggle.html @@ -36,13 +36,14 @@ function toggleMenuItem(name, menu, hide, current) {
{olang.MENU_TOGGLE_EXP}
- +

{olang.MENU_TOGGLE_TOP_MENU}