Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Fixing menu active status when ResqueBoard installed in a subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Jun 3, 2013
1 parent ff041ab commit 8315cf2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/ResqueBoard/View/body_prepend.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,11 @@
$class = array();
$selected = '';


if (((strpos($_SERVER['REQUEST_URI'], $nav['link']) !== false && $nav['link'] != '/' || $_SERVER['REQUEST_URI'] == '/' && $nav['link'] == '/'))) {
if (((strpos($_SERVER['REQUEST_URI'], $nav['link']) !== false && $nav['link'] != URL_ROOT || $_SERVER['REQUEST_URI'] == URL_ROOT && $nav['link'] == URL_ROOT))) {
$class['root'] = array('active');
$selected = ' aria-selected="true"';
};



echo '<li class="dropdown" role="presentation">'.
'<a href="';
if (isset($nav['submenu'])) {
Expand Down

0 comments on commit 8315cf2

Please sign in to comment.