summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-07 16:37:19 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-07 16:37:19 -0500
commitd7b2bb13d17451773b28afd6fe0535aeeecfdd55 (patch)
tree9a020f6a8932912f32360694d9a9dfec0e32aa50
parentc34895364f10955f2acf1f8c70fda72b83132eb8 (diff)
fixes
-rw-r--r--IkiWiki/Plugin/lockedit.pm2
-rw-r--r--IkiWiki/Plugin/signinedit.pm2
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 {