From: hickert Date: Thu, 11 Mar 2010 14:16:43 +0000 (+0000) Subject: Added myAccount path title X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=66ca221b61f85b89fbadb16aa125b046323b3184;p=gosa.git Added myAccount path title git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16462 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_pathNavigator.inc b/gosa-core/include/class_pathNavigator.inc index 601b89082..520f03d75 100644 --- a/gosa-core/include/class_pathNavigator.inc +++ b/gosa-core/include/class_pathNavigator.inc @@ -3,10 +3,10 @@ class pathNavigator { - static function registerPlugin($class) + static function registerPlugin($class, $title= "") { - $str = $title = ""; + $str = ""; // Display headline of management plugins if($class instanceOf management && isset($class->plHeadline)){ @@ -38,7 +38,9 @@ class pathNavigator session::set("pathNavigator::registerPlugin:{$class->dn}", $str); } $str = session::get("pathNavigator::registerPlugin:{$class->dn}"); - $title = $class->dn; + if(empty($title)){ + $title = $class->dn; + } } } diff --git a/gosa-core/plugins/personal/myaccount/main.inc b/gosa-core/plugins/personal/myaccount/main.inc index b3f89d4b0..ee5bec3da 100644 --- a/gosa-core/plugins/personal/myaccount/main.inc +++ b/gosa-core/plugins/personal/myaccount/main.inc @@ -90,7 +90,7 @@ if (! $cleanup ){ } /* Execute formular */ - pathNavigator::registerPlugin(_("My account")); + pathNavigator::registerPlugin(_("My account"),$MyAccountTabs->dn); if($lock_msg){ $display = $lock_msg; }else{ diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc index ad28d1b9d..3604a2ae4 100644 --- a/gosa-core/plugins/personal/posix/class_posixAccount.inc +++ b/gosa-core/plugins/personal/posix/class_posixAccount.inc @@ -408,6 +408,7 @@ class posixAccount extends plugin $smarty->assign("usePrototype", "false"); if ($result= $this->ssh->execute()) { $this->dialog= true; + pathNavigator::registerPlugin("SSH keys"); return $result; } $this->dialog= false;