From 188d7c19612d03830d1d996bc3d7bbd84e00e857 Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 28 Apr 2006 05:16:24 +0000 Subject: [PATCH] two notify bug fixes: - run it after refreshing so that all the page info is current - convert filenames into page names before checking against glob --- IkiWiki/UserInfo.pm | 6 +++++- ikiwiki | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/IkiWiki/UserInfo.pm b/IkiWiki/UserInfo.pm index bbcddb616..9a165dad1 100644 --- a/IkiWiki/UserInfo.pm +++ b/IkiWiki/UserInfo.pm @@ -68,7 +68,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(); diff --git a/ikiwiki b/ikiwiki index 2087b1baf..6c157132f 100755 --- a/ikiwiki +++ b/ikiwiki @@ -499,9 +499,9 @@ sub main () { #{{{ loadindex(); require IkiWiki::Render; rcs_update(); - rcs_notify() if $config{notify}; rcs_getctime() if $config{getctime}; refresh(); + rcs_notify() if $config{notify}; saveindex(); } } #}}} -- 2.26.2