From d7b2bb13d17451773b28afd6fe0535aeeecfdd55 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 7 Jan 2008 16:37:19 -0500 Subject: fixes --- IkiWiki/Plugin/lockedit.pm | 2 +- 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 { -- cgit v1.2.3