aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-03 14:30:47 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-12-03 14:30:47 +0000
commitb7e27420a5ab7457c02e232c8f5aa89eff14f31f (patch)
tree4ab29bce28ce5357dd606663d2ac9f44f96d047d /engine
parent50183d27f7249de7f855889b620a197451a01286 (diff)
downloadelgg-b7e27420a5ab7457c02e232c8f5aa89eff14f31f.tar.gz
elgg-b7e27420a5ab7457c02e232c8f5aa89eff14f31f.tar.bz2
Trimming the paths when detecting which nav item to mark as selected.
git-svn-id: http://code.elgg.org/elgg/trunk@3718 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/elgglib.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 3844bcf05..f1a72c06b 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -934,6 +934,9 @@ function get_submenu() {
parse_str($uri_info['query'], $uri_params);
parse_str($item_info['query'], $item_params);
+ $uri_info['path'] = trim($uri_info['path'], '/');
+ $item_info['path'] = trim($item_info['path'], '/');
+
// only if we're on the same path
// can't check server because sometimes it's not set in REQUEST_URI
if ($uri_info['path'] == $item_info['path']) {