aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-01-16 02:01:00 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-01-16 02:01:00 -0500
commitba6b8e5e3e3e5f6749623355a93269f16313eb61 (patch)
treeba9b7ba544a3a6f60d63d160506f567074a32d1a /IkiWiki
parent194894eb69fc0aaa4cb2182c3b115310e14fbda7 (diff)
downloadikiwiki-ba6b8e5e3e3e5f6749623355a93269f16313eb61.tar
ikiwiki-ba6b8e5e3e3e5f6749623355a93269f16313eb61.tar.gz
* aggregate: Don't let feeds set creation times for pages in the future.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/aggregate.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm
index a2c10ce5c..0da527f25 100644
--- a/IkiWiki/Plugin/aggregate.pm
+++ b/IkiWiki/Plugin/aggregate.pm
@@ -416,7 +416,8 @@ sub add_page (@) { #{{{
# Set the mtime, this lets the build process get the right creation
# time on record for the new page.
- utime $mtime, $mtime, pagefile($guid->{page}) if defined $mtime;
+ utime $mtime, $mtime, pagefile($guid->{page})
+ if defined $mtime && $mtime <= time;
} #}}}
sub htmlescape ($) { #{{{