Fix ACL saving
authorJamie Cameron <jcameron@webmin.com>
Tue, 7 Sep 2010 18:39:48 +0000 (11:39 -0700)
committerJamie Cameron <jcameron@webmin.com>
Tue, 7 Sep 2010 18:39:48 +0000 (11:39 -0700)
link/acl_security.pl
link/module.info

index e575f1d..f57fb61 100755 (executable)
@@ -1,12 +1,12 @@
 
-do '../web-lib.pl';
+BEGIN { push(@INC, ".."); };
+use WebminCore;
 &init_config();
 
 sub acl_security_form
 {
-print "<tr> <td><b>$text{'acl_link'}</b></td>\n";
-printf "<td colspan=3><input name=link size=50 value='%s'></td> </tr>\n",
-       $_[0]->{'link'};
+print &ui_table_row($text{'acl_link'},
+       &ui_textbox("link", $_[0]->{'link'}, 50));
 }
 
 sub acl_security_save
index 30c2eb2..7b7ca02 100644 (file)
@@ -1,6 +1,6 @@
 name=Link
 desc=Custom Link
 category=others
-version=1.3
+version=1.4
 depends=1.170
 readonly=1