]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
minor optimisation
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 1 Jul 2008 17:51:22 +0000 (13:51 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 1 Jul 2008 17:51:22 +0000 (13:51 -0400)
IkiWiki/Plugin/lockedit.pm

index 010705c49a4fc460976b3239227c972d05d6df76..5ffb4e6f9edd254691f4fb5b246e3afb2aeea147 100644 (file)
@@ -40,11 +40,11 @@ sub formbuilder_setup (@) { #{{{
        my %params=@_;
        
        my $form=$params{form};
-       my $session=$params{session};
-       my $cgi=$params{cgi};
-       my $user_name=$session->param("name");
-
        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,
                        fieldset => "admin",
                        comment => "(".htmllink("", "", "ikiwiki/PageSpec", noimageinline => 1).")");