mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Correct admin navigation menu highlighting.
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
@@ -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')
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user