diff options
-rw-r--r-- | IkiWiki/Plugin/lockedit.pm | 2 | ||||
-rw-r--r-- | IkiWiki/Plugin/signinedit.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/lockedit.pm b/IkiWiki/Plugin/lockedit.pm index 5a4e2fc38..010705c49 100644 --- a/IkiWiki/Plugin/lockedit.pm +++ b/IkiWiki/Plugin/lockedit.pm @@ -22,7 +22,7 @@ sub canedit ($$) { #{{{ foreach my $admin (@{$config{adminuser}}) { if (pagespec_match($page, IkiWiki::userinfo_get($admin, "locked_pages"))) { if (! defined $user || - ! userinfo_get($session->param("name"), "regdate")) { + ! IkiWiki::userinfo_get($session->param("name"), "regdate")) { return sub { IkiWiki::needsignin($cgi, $session) }; } else { diff --git a/IkiWiki/Plugin/signinedit.pm b/IkiWiki/Plugin/signinedit.pm index d5729f702..84ab3a4d0 100644 --- a/IkiWiki/Plugin/signinedit.pm +++ b/IkiWiki/Plugin/signinedit.pm @@ -19,7 +19,7 @@ sub canedit ($$$) { #{{{ # hook runs last, so that any hooks that don't need the user to # signin can override this. if (! defined $session->param("name") || - ! userinfo_get($session->param("name"), "regdate")) { + ! IkiWiki::userinfo_get($session->param("name"), "regdate")) { return sub { IkiWiki::needsignin($cgi, $session) }; } else { |