1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-22 05:31:58 +02:00

Closes - Navigation active class issue.

This commit is contained in:
Cameron 2013-05-17 16:43:14 -07:00
parent cd716e8cd9
commit f29852230e
4 changed files with 14 additions and 3 deletions

@ -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();