mirror of
https://github.com/e107inc/e107.git
synced 2025-04-22 05:31:58 +02:00
Closes #313 - Navigation active class issue.
This commit is contained in:
parent
cd716e8cd9
commit
f29852230e
e107_handlers
e107_plugins/forum
@ -1472,6 +1472,17 @@ class e_navigation
|
||||
return true;
|
||||
}
|
||||
|
||||
// XXX Temporary Fix - TBD.
|
||||
// Set the URL matching in the page itself. see: forum_viewforum.php and forum_viewtopic.php
|
||||
if(defined("NAVIGATION_ACTIVE") && !$data['link_sub'])
|
||||
{
|
||||
if(strpos($data['link_url'], NAVIGATION_ACTIVE)!==false)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
*/
|
||||
|
||||
require_once('../../class2.php');
|
||||
|
||||
define('NAVIGATION_ACTIVE','forum');
|
||||
$e107 = e107::getInstance();
|
||||
$tp = e107::getParser();
|
||||
$ns = e107::getRender();
|
||||
|
@ -21,7 +21,7 @@ if (!$e107->isInstalled('forum'))
|
||||
exit;
|
||||
}
|
||||
include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_viewforum.php');
|
||||
|
||||
define('NAVIGATION_ACTIVE','forum');
|
||||
|
||||
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
*/
|
||||
|
||||
require_once ('../../class2.php');
|
||||
|
||||
define('NAVIGATION_ACTIVE','forum');
|
||||
$e107 = e107::getInstance();
|
||||
$tp = e107::getParser();
|
||||
$ns = e107::getRender();
|
||||
|
Loading…
x
Reference in New Issue
Block a user