* Use div layout for the signin and preferences forms, so that they can be
[ikiwiki.git] / IkiWiki / UserInfo.pm
index 8bd056248ff1ee02884fc7f6847b9e9dc83ad8f1..d0ef578c240a4a021afa424a8d7c8beb9246469a 100644 (file)
@@ -92,11 +92,8 @@ sub set_banned_users (@) { #{{{
        return userinfo_store($userinfo);
 } #}}}
 
-# Global used to pass information into the PageSpec function.
-our $committer;
-
 sub commit_notify_list ($@) { #{{{
-       $committer=shift;
+       my $committer=shift;
        my @pages = map pagename($_), @_;
 
        my @ret;
@@ -107,7 +104,9 @@ sub commit_notify_list ($@) { #{{{
                    length $userinfo->{$user}->{subscriptions} &&
                    exists $userinfo->{$user}->{email} &&
                    length $userinfo->{$user}->{email} &&
-                   grep { pagespec_match($_, $userinfo->{$user}->{subscriptions}, "") }
+                   grep { pagespec_match($_,
+                                   $userinfo->{$user}->{subscriptions}, 
+                                   user => $committer) }
                        map pagename($_), @_) {
                        push @ret, $userinfo->{$user}->{email};
                }
@@ -180,13 +179,4 @@ sub send_commit_mails ($$$@) { #{{{
        }
 } #}}}
 
-package IkiWiki::PageSpec;
-
-sub match_user ($$$) { #{{{
-       shift;
-       my $user=shift;
-
-       return $user eq $committer;
-} #}}}
-
 1