Skip to content

Commit

Permalink
Corrected error: month pages were created even without calendar_autoc…
Browse files Browse the repository at this point in the history
…reate config option
  • Loading branch information
Louis committed Nov 14, 2014
1 parent d0b3495 commit 473bcbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IkiWiki/Plugin/calendar.pm
Expand Up @@ -171,8 +171,6 @@ sub gencalendaryear {
my $year = shift;
my %params = @_;

return unless $config{calendar_autocreate};

# Building year page
my $page = calendarlink($year);
my $pagefile = newpagefile($page, $config{default_pageext});
Expand Down Expand Up @@ -713,6 +711,8 @@ sub scan (@) {
my %params=@_;
my $page=$params{page};

return unless $config{calendar_autocreate};

# Check if year pages have to be generated
if (pagespec_match($page, $config{archive_pagespec})) {
my @ctime = localtime($IkiWiki::pagectime{$page});
Expand Down

0 comments on commit 473bcbe

Please sign in to comment.