From 29ffe0b5fb0c9a64b7a582c6f3f4ebe6d96ed849 Mon Sep 17 00:00:00 2001 From: Michael Joseph Date: Tue, 25 Feb 2003 10:29:12 +0000 Subject: [PATCH] don't need to remove the first link from SiteMap::getSectionLinks anymore --- presentation/webpageTemplate.inc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/presentation/webpageTemplate.inc b/presentation/webpageTemplate.inc index 8686226..970a2cc 100644 --- a/presentation/webpageTemplate.inc +++ b/presentation/webpageTemplate.inc @@ -53,15 +53,8 @@ $nwPayLoad ->setHtml($nwestLoad); if ($sectionName != "General") { $sectionArray = $default->siteMap->getSectionLinks($sectionName); - //format the array..by taking first element off if its not an admin section - if((substr($sectionName, -14)) == "Administration" and (strlen($sectionName) > 15)){ - $output1["links"] = $sectionArray["links"]; - $output2["descriptions"] = $sectionArray["descriptions"]; - } - else{ - $output1["links"] = array_shift ($sectionArray["links"]); - $output2["descriptions"] = array_shift($sectionArray["descriptions"]); - } + $output1["links"] = $sectionArray["links"]; + $output2["descriptions"] = $sectionArray["descriptions"]; //create links $westLinks = new PatternTableLinks($sectionArray["links"], $sectionArray["descriptions"], 40 , 1 ,1,null); -- libgit2 0.21.4