]> sipb.mit.edu Git - ikiwiki.git/commitdiff
two notify bug fixes:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Fri, 28 Apr 2006 05:16:24 +0000 (05:16 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Fri, 28 Apr 2006 05:16:24 +0000 (05:16 +0000)
- run it after refreshing so that all the page info is current
- convert filenames into page names before checking against glob

IkiWiki/UserInfo.pm
ikiwiki

index bbcddb6162cfde668a8665ad498a78fcc4f9e5c7..9a165dad17be8ae59049026f47a0fd2cb3a8ac34 100644 (file)
@@ -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 2087b1bafec4f6d2020d11f15e0414a02d31c022..6c157132fc53e076cf18ce86c5700d60987682bb 100755 (executable)
--- 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();
        }
 } #}}}