Code

Added myAccount path title
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Mar 2010 14:16:43 +0000 (14:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Mar 2010 14:16:43 +0000 (14:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@16462 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_pathNavigator.inc
gosa-core/plugins/personal/myaccount/main.inc
gosa-core/plugins/personal/posix/class_posixAccount.inc

index 601b8908294b97cfd890a12ee1b035f9d9c02ffd..520f03d75f69c16a75815cfa09dcd24ea76351e0 100644 (file)
@@ -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;
+        }
       }
     }
 
index b3f89d4b0a97c1165cb293c3847ef43702013684..ee5bec3da7c331a9416785d24cb52a65b0d293c4 100644 (file)
@@ -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{
index ad28d1b9d34a38cab1007e828280a085a5ea685e..3604a2ae45048b5a962024f0eea53371b8752b94 100644 (file)
@@ -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;