From b82736db054ecc9a417e46398d6ab10ab11f2b93 Mon Sep 17 00:00:00 2001 From: rob Date: Thu, 23 Jan 2003 07:49:33 +0000 Subject: [PATCH] Added code to strip owl_root_url from site map lookup string --- presentation/webpageTemplate.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/presentation/webpageTemplate.inc b/presentation/webpageTemplate.inc index f355b4f..afb56c2 100644 --- a/presentation/webpageTemplate.inc +++ b/presentation/webpageTemplate.inc @@ -8,6 +8,7 @@ * * @author Mukhtar Dharsey * @date 20 January 2003 +* @package presentation.lookandfeel */ require_once("$default->owl_fs_root/lib/visualpatterns/PatternMainPage.inc"); @@ -16,12 +17,11 @@ require_once("$default->owl_fs_root/lib/visualpatterns/PatternTableLinks.inc"); require_once("$default->owl_fs_root/lib/visualpatterns/PatternTableSqlQuery.inc"); require_once("$default->owl_fs_root/lib/visualpatterns/NavBar.inc"); - // create the navbar and north payload $navbar = new NavBar(); //get the section name -$sectionName = $default->siteMap->getSectionName($_SERVER["PHP_SELF"]); +$sectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->owl_root_url), strlen($_SERVER["PHP_SELF"]))); //highlight the respective section $navbar->setHighlightedSection($sectionName); @@ -47,7 +47,7 @@ $nwPayLoad ->setHtml($nwestLoad); // set up the west payload //get section links -$sectionArray =$default->siteMap->getSectionLinks($sectionName); +$sectionArray = $default->siteMap->getSectionLinks($sectionName); //format the array..by taking first element off $output1["links"] = array_shift ($sectionArray["links"]); -- libgit2 0.21.4