From ef9bbf25f080145fcf0fc1efaf0459584cdc147f Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 8 Apr 2015 10:35:59 -0700 Subject: [PATCH] Correct admin navigation menu highlighting. --- e107_handlers/cron_class.php | 2 +- e107_handlers/e107_class.php | 2 +- e107_plugins/faqs/admin_config.php | 11 ++++++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/e107_handlers/cron_class.php b/e107_handlers/cron_class.php index 9f8a78af9..6e1537d40 100644 --- a/e107_handlers/cron_class.php +++ b/e107_handlers/cron_class.php @@ -244,7 +244,7 @@ class _system_cron if(file_exists($zipFile)) { - e107::getLog()->addSuccess('Database Backup Complete:'.basename($zipFile))->save('BACKUP'); + e107::getLog()->addSuccess('Database Backup Complete: '.basename($zipFile))->save('BACKUP'); if(is_file($file)) { diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index bd85a61dd..415753bef 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -2608,7 +2608,7 @@ class e107 * @param string $plugin * @param $key * @param array $row - * @param string $mode abs | full + * @param string $mode abs | full * @return string */ public static function url($plugin='',$key, $row=array(), $mode='abs') diff --git a/e107_plugins/faqs/admin_config.php b/e107_plugins/faqs/admin_config.php index 1301fa218..2c67bc4d1 100644 --- a/e107_plugins/faqs/admin_config.php +++ b/e107_plugins/faqs/admin_config.php @@ -40,7 +40,7 @@ class faq_admin extends e_admin_dispatcher protected $adminMenu = array( 'main/list' => array('caption'=> LAN_MANAGE, 'perm' => 'P'), 'main/create' => array('caption'=> LAN_CREATE_ITEM, 'perm' => 'P'), - 'main/followup' => array('caption'=> "Unanswered", 'perm' => 'P', 'uri'=>"admin_config.php?searchquery=&filter_options=faq_author__0&mode=main&action=list"), + 'main/pending' => array('caption'=> "Unanswered", 'perm' => 'P', 'uri'=>"admin_config.php?searchquery=&filter_options=faq_author__0&mode=main&action=list&filter=pending"), 'cat/list' => array('caption'=> LAN_CATEGORIES, 'perm' => 'P'), 'cat/create' => array('caption'=> LAN_CREATE_CATEGORY, 'perm' => 'P'), @@ -55,6 +55,15 @@ class faq_admin extends e_admin_dispatcher protected $menuTitle = 'FAQs'; // + function init() + { + if(!empty($_GET['filter'])) + { + $action = $_GET['filter']; + $this->adminMenu['main/'.$action]['selected'] = true; + } + + } } class faq_cat_ui extends e_admin_ui