X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/5cd32c2eeeafc5e9f3feae7983fc48a9711462a3..b37070d888919ae30219ce13e4d3cce359fd75e1:/IkiWiki/UserInfo.pm?ds=sidebyside diff --git a/IkiWiki/UserInfo.pm b/IkiWiki/UserInfo.pm index bbcddb616..a944cafa6 100644 --- a/IkiWiki/UserInfo.pm +++ b/IkiWiki/UserInfo.pm @@ -3,6 +3,7 @@ use warnings; use strict; use Storable; +use IkiWiki; package IkiWiki; @@ -68,7 +69,11 @@ sub is_admin ($) { #{{{ sub commit_notify_list ($@) { #{{{ my $committer=shift; - my @pages=@_; + + my @pages; + foreach my $file (@_) { + push @pages, grep { $pagesources{$_} eq $file } keys %pagesources; + } my @ret; my $userinfo=userinfo_retrieve(); @@ -78,7 +83,7 @@ sub commit_notify_list ($@) { #{{{ length $userinfo->{$user}->{subscriptions} && exists $userinfo->{$user}->{email} && length $userinfo->{$user}->{email} && - grep { globlist_match($_, $userinfo->{$user}->{subscriptions}) } @pages) { + grep { pagespec_match($_, $userinfo->{$user}->{subscriptions}) } @pages) { push @ret, $userinfo->{$user}->{email}; } }