Commit a314bc9c53be97dfe588e63c899d722d276d816f

Authored by nbm
1 parent fa63b635

Move breadcrumbs handling into dispatcher constructor so that it is

potentially translated.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4410 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/documentmanagement/editDocument.php
... ... @@ -33,10 +33,14 @@ class KTEditDocumentDispatcher extends KTStandardDispatcher {
33 33 var $bAutomaticTransaction = true;
34 34 var $oDocument = null;
35 35 var $oFolder = null;
36   - var $aBreadcrumbs = array(
37   - array('action' => 'browse', 'name' => 'Browse'),
38   - );
39 36 var $sSection = "view_details";
  37 +
  38 + function KTEditDocumentDispatcher() {
  39 + $this->aBreadcrumbs = array(
  40 + array('action' => 'browse', 'name' => _('Browse')),
  41 + );
  42 + return parent::KTStandardDispatcher();
  43 + }
40 44  
41 45 // FIXME identify the current location somehow.
42 46 function addPortlets($currentaction = null) {
... ...