Commit 06fa6a392d9c694e878c5573a08cff2d210afdcc
1 parent
33155aec
help needs to show context.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4601 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
10 additions
and
0 deletions
help.php
| ... | ... | @@ -34,9 +34,18 @@ class HelpDispatcher extends KTStandardDispatcher { |
| 34 | 34 | var $sSection = "dashboard"; |
| 35 | 35 | var $bIsReplacement = false; |
| 36 | 36 | |
| 37 | + function HelpDispatcher() { | |
| 38 | + $this->aBreadcrumbs[] = array('action' => 'dashboard', 'name' => _('Dashboard')); | |
| 39 | + $this->aBreadcrumbs[] = array('name' => _('Help')); | |
| 40 | + parent::KTStandardDispatcher(); | |
| 41 | + } | |
| 42 | + | |
| 37 | 43 | function is_replacement() { return $this->bIsReplacement; } |
| 38 | 44 | |
| 39 | 45 | function do_main() { |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 40 | 49 | $pathinfo = KTUtil::arrayGet($_SERVER, 'PATH_INFO'); |
| 41 | 50 | if (empty($pathinfo)) { |
| 42 | 51 | $this->oPage->setTitle(_('No help page specified.')); |
| ... | ... | @@ -87,6 +96,7 @@ class HelpDispatcher extends KTStandardDispatcher { |
| 87 | 96 | // we now _can_ edit. |
| 88 | 97 | |
| 89 | 98 | $this->oPage->setTitle($aHelpInfo['title']); |
| 99 | + $this->aBreadcrumbs[] = array('url' => $_SERVER['PHP_SELF'], 'name' => $aHelpInfo['title']); | |
| 90 | 100 | |
| 91 | 101 | $oTemplating = new KTTemplating; |
| 92 | 102 | $oTemplate = $oTemplating->loadTemplate("ktcore/help_with_edit"); | ... | ... |