diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-24 21:36:37 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-24 21:36:37 +0000 |
commit | 61c909e2f28758baa7089649f2ae2569213e8eac (patch) | |
tree | 616dde1ae772bfb11e1850349576786f76496891 /IkiWiki | |
parent | d9cd1050da12aa54f225c5c1dd9bee12178f2f48 (diff) |
implemented upgradehooksh
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Render.pm | 7 |
1 files changed, 4 insertions, 3 deletions
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; |