From 134af4b37e89a0b82850de9f17a59ab076fd816e Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 9 Jul 2008 18:36:03 +0000 Subject: Fixed submenu tab contexts git-svn-id: https://code.elgg.org/elgg/trunk@1381 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/elgglib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index a3ef66928..7cd11bc04 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -511,8 +511,8 @@ if ($submenu_register = get_register('submenu')) { foreach($submenu_register as $item) { - - if (substr_count($_SERVER['REQUEST_URI'], $item->value)) { + + if (substr_count($item->value, $_SERVER['REQUEST_URI'])) { $selected = true; } else { $selected = false; -- cgit v1.2.3