Code

Script will be updated correctly now
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 1 Dec 2005 11:51:23 +0000 (11:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 1 Dec 2005 11:51:23 +0000 (11:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2179 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/applications/class_applicationGeneric.inc
plugins/admin/applications/class_applicationParameters.inc

index c04abdbeba18ff8edc6176d00e03d2f19ccefc4c..cb2fe6009045c35ce9bbce9e6d77651d276f5dd3 100644 (file)
@@ -78,7 +78,7 @@ class application extends plugin
   }
 
 
-  function generateTempalte(){
+  function generateTemplate(){
        $str= "# This code is part of GOsa (https://gosa.gonicus.de)\n#\n";
 
        $values = array();
@@ -129,7 +129,7 @@ class application extends plugin
        }
 
 #      if(isset($_POST['ScriptTemplate'])){
-               $head = $this->generateTempalte();
+               $head = $this->generateTemplate();
                $scr  = $this->gotoLogonScript; 
                
                if(preg_match("/### END HEADER ###/",$scr)){
index beabfee52af0234770710ba8329a1e385ae63059..da2bc67ccda9a92b266141c5739d828f2c780ce3 100644 (file)
@@ -52,6 +52,7 @@ class applicationParameters extends plugin
                } else {
                        $display= $this->show_header(_("Create options"),
                                _("This application has options disabled. You can enable them by clicking below."));
+                       $this->parent->by_object['application']->generateTemplate();
                        return ($display);
                }
        }
@@ -104,6 +105,7 @@ class applicationParameters extends plugin
        $smarty= get_smarty();
        $smarty->assign("table", $table);
        $display.= $smarty->fetch(get_template_path('parameters.tpl', TRUE));
+       $this->parent->by_object['application']->generateTemplate();
        return ($display);
   }