mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Closes #313 - Navigation active class issue.
This commit is contained in:
@@ -1472,6 +1472,17 @@ class e_navigation
|
|||||||
return true;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
require_once('../../class2.php');
|
require_once('../../class2.php');
|
||||||
|
define('NAVIGATION_ACTIVE','forum');
|
||||||
$e107 = e107::getInstance();
|
$e107 = e107::getInstance();
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
$ns = e107::getRender();
|
$ns = e107::getRender();
|
||||||
|
@@ -21,7 +21,7 @@ if (!$e107->isInstalled('forum'))
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_viewforum.php');
|
include_lan(e_PLUGIN.'forum/languages/'.e_LANGUAGE.'/lan_forum_viewforum.php');
|
||||||
|
define('NAVIGATION_ACTIVE','forum');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
require_once ('../../class2.php');
|
require_once ('../../class2.php');
|
||||||
|
define('NAVIGATION_ACTIVE','forum');
|
||||||
$e107 = e107::getInstance();
|
$e107 = e107::getInstance();
|
||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
$ns = e107::getRender();
|
$ns = e107::getRender();
|
||||||
|
Reference in New Issue
Block a user