diff --git a/plugins/admin/applications/class_applicationParameters.inc b/plugins/admin/applications/class_applicationParameters.inc
index 4b229c8f7a4fccb8c53b952923215ebf02ebc9e7..da2bc67ccda9a92b266141c5739d828f2c780ce3 100644 (file)
function execute()
{
function execute()
{
+ /* Call parent execute */
+ plugin::execute();
+
/* Do we need to flip is_account state? */
if (isset($_POST['modify_state'])){
$this->is_account= !$this->is_account;
/* Do we need to flip is_account state? */
if (isset($_POST['modify_state'])){
$this->is_account= !$this->is_account;
} else {
$display= $this->show_header(_("Create options"),
_("This application has options disabled. You can enable them by clicking below."));
} 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);
}
}
return ($display);
}
}
$this->option_name[]= "";
$this->option_value[]= "";
}
$this->option_name[]= "";
$this->option_value[]= "";
}
- $table= "<table><tr><td>"._("Variable")."</td><td>"._("Default value")."</td><td></td></tr>";
+ $table= "<table summary=\"\"><tr><td>"._("Variable")."</td><td>"._("Default value")."</td><td></td></tr>";
if (count ($this->option_name)){
for ($i= 0; $i < count($this->option_name); $i++){
$table.="<tr><td><input name=\"option$i\" size=25 maxlength=50 ".
if (count ($this->option_name)){
for ($i= 0; $i < count($this->option_name); $i++){
$table.="<tr><td><input name=\"option$i\" size=25 maxlength=50 ".
$smarty= get_smarty();
$smarty->assign("table", $table);
$display.= $smarty->fetch(get_template_path('parameters.tpl', TRUE));
$smarty= get_smarty();
$smarty->assign("table", $table);
$display.= $smarty->fetch(get_template_path('parameters.tpl', TRUE));
+ $this->parent->by_object['application']->generateTemplate();
return ($display);
}
return ($display);
}
/* Check for valid option names */
for ($i= 0; $i<count($this->option_name); $i++){
/* Check for valid option names */
for ($i= 0; $i<count($this->option_name); $i++){
- if (!preg_match ("/^[a-z0-9_]+$/", $this->option_name[$i])){
+ if (!preg_match ("/^[a-z0-9_]+$/i", $this->option_name[$i])){
$message[]= sprintf(_("Value '%s' specified as option name is not valid."),
$this->option_name[$i]);
}
$message[]= sprintf(_("Value '%s' specified as option name is not valid."),
$this->option_name[$i]);
}