From b7e27420a5ab7457c02e232c8f5aa89eff14f31f Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 3 Dec 2009 14:30:47 +0000 Subject: 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 --- engine/lib/elgglib.php | 3 +++ 1 file changed, 3 insertions(+) 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']) { -- cgit v1.2.3