Commit b82736db054ecc9a417e46398d6ab10ab11f2b93
1 parent
4c6c3d9b
Added code to strip owl_root_url from site map lookup string
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@485 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
3 deletions
presentation/webpageTemplate.inc
| @@ -8,6 +8,7 @@ | @@ -8,6 +8,7 @@ | ||
| 8 | * | 8 | * |
| 9 | * @author Mukhtar Dharsey | 9 | * @author Mukhtar Dharsey |
| 10 | * @date 20 January 2003 | 10 | * @date 20 January 2003 |
| 11 | +* @package presentation.lookandfeel | ||
| 11 | */ | 12 | */ |
| 12 | 13 | ||
| 13 | require_once("$default->owl_fs_root/lib/visualpatterns/PatternMainPage.inc"); | 14 | require_once("$default->owl_fs_root/lib/visualpatterns/PatternMainPage.inc"); |
| @@ -16,12 +17,11 @@ require_once("$default->owl_fs_root/lib/visualpatterns/PatternTableLinks.inc"); | @@ -16,12 +17,11 @@ require_once("$default->owl_fs_root/lib/visualpatterns/PatternTableLinks.inc"); | ||
| 16 | require_once("$default->owl_fs_root/lib/visualpatterns/PatternTableSqlQuery.inc"); | 17 | require_once("$default->owl_fs_root/lib/visualpatterns/PatternTableSqlQuery.inc"); |
| 17 | require_once("$default->owl_fs_root/lib/visualpatterns/NavBar.inc"); | 18 | require_once("$default->owl_fs_root/lib/visualpatterns/NavBar.inc"); |
| 18 | 19 | ||
| 19 | - | ||
| 20 | // create the navbar and north payload | 20 | // create the navbar and north payload |
| 21 | $navbar = new NavBar(); | 21 | $navbar = new NavBar(); |
| 22 | 22 | ||
| 23 | //get the section name | 23 | //get the section name |
| 24 | -$sectionName = $default->siteMap->getSectionName($_SERVER["PHP_SELF"]); | 24 | +$sectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->owl_root_url), strlen($_SERVER["PHP_SELF"]))); |
| 25 | 25 | ||
| 26 | //highlight the respective section | 26 | //highlight the respective section |
| 27 | $navbar->setHighlightedSection($sectionName); | 27 | $navbar->setHighlightedSection($sectionName); |
| @@ -47,7 +47,7 @@ $nwPayLoad ->setHtml($nwestLoad); | @@ -47,7 +47,7 @@ $nwPayLoad ->setHtml($nwestLoad); | ||
| 47 | 47 | ||
| 48 | // set up the west payload | 48 | // set up the west payload |
| 49 | //get section links | 49 | //get section links |
| 50 | -$sectionArray =$default->siteMap->getSectionLinks($sectionName); | 50 | +$sectionArray = $default->siteMap->getSectionLinks($sectionName); |
| 51 | 51 | ||
| 52 | //format the array..by taking first element off | 52 | //format the array..by taking first element off |
| 53 | $output1["links"] = array_shift ($sectionArray["links"]); | 53 | $output1["links"] = array_shift ($sectionArray["links"]); |