summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/lockedit.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/lockedit.pm')
-rw-r--r--IkiWiki/Plugin/lockedit.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/lockedit.pm b/IkiWiki/Plugin/lockedit.pm
index 010705c49..5ffb4e6f9 100644
--- a/IkiWiki/Plugin/lockedit.pm
+++ b/IkiWiki/Plugin/lockedit.pm
@@ -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).")");