]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Trimming the paths when detecting which nav item to mark as selected.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 3 Dec 2009 14:30:47 +0000 (14:30 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 3 Dec 2009 14:30:47 +0000 (14:30 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3718 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/elgglib.php

index 3844bcf050e805b7d77d7586be595f44e8c93164..f1a72c06bd5d13478e7ccfc1b76183637a3760bb 100644 (file)
@@ -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']) {