minor optimisation

master
Joey Hess 2008-07-01 13:51:22 -04:00
parent d7ca2f8f9b
commit 00962f589a
1 changed files with 4 additions and 4 deletions

View File

@ -40,11 +40,11 @@ sub formbuilder_setup (@) { #{{{
my %params=@_; my %params=@_;
my $form=$params{form}; my $form=$params{form};
my $session=$params{session};
my $cgi=$params{cgi};
my $user_name=$session->param("name");
if ($form->title eq "preferences") { if ($form->title eq "preferences") {
my $session=$params{session};
my $cgi=$params{cgi};
my $user_name=$session->param("name");
$form->field(name => "locked_pages", size => 50, $form->field(name => "locked_pages", size => 50,
fieldset => "admin", fieldset => "admin",
comment => "(".htmllink("", "", "ikiwiki/PageSpec", noimageinline => 1).")"); comment => "(".htmllink("", "", "ikiwiki/PageSpec", noimageinline => 1).")");