]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
revert bugfix
authorJoey Hess <joey@kitenet.net>
Tue, 6 Jul 2010 20:02:41 +0000 (16:02 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 6 Jul 2010 20:02:41 +0000 (16:02 -0400)
Not needed; lastupdate will be 0 for new feeds.

IkiWiki/Plugin/aggregate.pm

index e473fc6430819bbb19a0120d0acca4106b25edc7..7789c4c2a9d38b7e616d9d3b4df8e4d96fe74ec6 100644 (file)
@@ -359,14 +359,9 @@ sub savestate () {
 
        my $timestamp=undef;
        foreach my $feed (keys %feeds) {
-               if (defined $feeds{$feed}->{lastupdate}) {
-                       my $t=$feeds{$feed}->{lastupdate}+$feeds{$feed}->{updateinterval};
-                       if (! defined $timestamp || $timestamp > $t) {
-                               $timestamp=$t;
-                       }
-               }
-               else {
-                       $timestamp=0;
+               my $t=$feeds{$feed}->{lastupdate}+$feeds{$feed}->{updateinterval};
+               if (! defined $timestamp || $timestamp > $t) {
+                       $timestamp=$t;
                }
        }
        $newfile=~s/\.new$/time/;