1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-08 05:11:01 +02:00

Closes #313 - 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

View File

@@ -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;
}