Code

Added new show_*_header to environemnt
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Jul 2006 11:56:11 +0000 (11:56 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Jul 2006 11:56:11 +0000 (11:56 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4206 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_environment.inc

index 6896c217fe15f278192b5fa379b711af5e7502e5..4ae4d3a81579b9230bdb7f6579f1b45c015b51a5 100644 (file)
@@ -294,7 +294,7 @@ class environment extends plugin
 
       /* Group Dialog with enabled environment options */
       if ($this->is_account){
-        $display= $this->show_header(_("Remove environment extension"),
+        $display= $this->show_enable_header(_("Remove environment extension"),
             _("Environment extension enabled. You can disable it by clicking below."));
       } else {
   
@@ -304,12 +304,12 @@ class environment extends plugin
        */
         if((isset($this->parent->by_object['group']))||(isset($this->attrs['objectClass']))&&((in_array("posixAccount",$this->attrs['objectClass'])))){
           // 4. There is a PosixAccount
-          $display= $this->show_header(_("Add environment extension"),
+          $display= $this->show_enable_header(_("Add environment extension"),
               _("Environment extension disabled. You can enable it by clicking below."));
           return $display;
         }else{
           // 4. There is no PosixAccount
-          $display= $this->show_header(_("Add environment extension"),
+          $display= $this->show_enable_header(_("Add environment extension"),
               _("Environment extension disabled. You have to setup a posix account before you can enable this feature."));
           return $display;
         }
@@ -331,18 +331,18 @@ class environment extends plugin
 
         // 3. Account enabled . Editing from adminmenu
         if ($this->is_account){
-          $display= $this->show_header(_("Remove environment extension"),
+          $display= $this->show_disable_header(_("Remove environment extension"),
               _("Environment extension enabled. You can disable it by clicking below."));
         } else {
 
           if($this->parent->by_object['posixAccount']->is_account==true){
             // 4. There is a PosixAccount
-            $display= $this->show_header(_("Add environment extension"),
+            $display= $this->show__disable_header(_("Add environment extension"),
                 _("Environment extension disabled. You can enable it by clicking below."));
             return $display;
           }else{
             // 4. There is a PosixAccount
-            $display= $this->show_header(_("Add environment extension"),
+            $display= $this->show_disable_header(_("Add environment extension"),
                 _("Environment extension disabled. You have to setup a posix account before you can enable this feature."),TRUE,TRUE);
             return $display;
           }