Commit 6b87e519d1fab70d5ee9f752fe30eb44fdbf7628

Authored by Neil Blakey-Milner
1 parent f480353b

Reset breadcrumbs from scratch on the dispatcher - it doesn't know where

it is at all...


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4445 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 3 additions and 1 deletions
admin.php
@@ -13,7 +13,7 @@ class AdminSplashDispatcher extends KTAdminDispatcher { @@ -13,7 +13,7 @@ class AdminSplashDispatcher extends KTAdminDispatcher {
13 13
14 function AdminSplashDispatcher() { 14 function AdminSplashDispatcher() {
15 $this->aBreadcrumbs = array( 15 $this->aBreadcrumbs = array(
16 - array('action' => 'administration', 'name' => 'Administration'), 16 + array('url' => KTUtil::getRequestScriptName($_SERVER), 'name' => 'Administration'),
17 ); 17 );
18 18
19 parent::KTAdminDispatcher(); 19 parent::KTAdminDispatcher();
@@ -83,6 +83,8 @@ if (empty($sub_url)) { @@ -83,6 +83,8 @@ if (empty($sub_url)) {
83 $oRegistry =& KTAdminNavigationRegistry::getSingleton(); 83 $oRegistry =& KTAdminNavigationRegistry::getSingleton();
84 $aCategory = $oRegistry->getCategory($aParts[0]); 84 $aCategory = $oRegistry->getCategory($aParts[0]);
85 85
  86 + $oDispatcher->aBreadcrumbs = array();
  87 + $oDispatcher->aBreadcrumbs[] = array('url' => KTUtil::getRequestScriptName($_SERVER), 'name' => 'Administration');
86 $oDispatcher->aBreadcrumbs[] = array("name" => $aCategory['title'], "url" => KTUtil::getRequestScriptName($_SERVER) . '/' . $aParts[0]); 88 $oDispatcher->aBreadcrumbs[] = array("name" => $aCategory['title'], "url" => KTUtil::getRequestScriptName($_SERVER) . '/' . $aParts[0]);
87 } else { 89 } else {
88 // FIXME (minor) redirect to no-suburl? 90 // FIXME (minor) redirect to no-suburl?