From 61c909e2f28758baa7089649f2ae2569213e8eac Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 24 Mar 2006 21:36:37 +0000 Subject: implemented upgradehooksh --- IkiWiki/Render.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 4e2caa6ce..e6d0bc510 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -315,9 +315,9 @@ sub check_overwrite ($$) { #{{{ } #}}} sub mtime ($) { #{{{ - my $page=shift; + my $file=shift; - return (stat($page))[9]; + return (stat($file))[9]; } #}}} sub findlinks ($$) { #{{{ @@ -418,7 +418,8 @@ sub refresh () { #{{{ push @add, $file; $links{$page}=[]; $pagesources{$page}=$file; - $pagectime{$page}=time unless exists $pagectime{$page}; + $pagectime{$page}=mtime("$config{srcdir}/$file") + unless exists $pagectime{$page}; } } my @del; -- cgit v1.2.3