diff options
author | Louis <spalax@gresille.org> | 2014-11-14 14:59:37 +0100 |
---|---|---|
committer | Louis <spalax@gresille.org> | 2014-11-14 14:59:58 +0100 |
commit | 473bcbe7a42a4168cab82ed12185817248de045f (patch) | |
tree | b4e802f94ab7ac4977967308d7d9a6848f33863e /IkiWiki/Plugin | |
parent | d0b34951240317642543351ec62f98d3d8df8c0f (diff) | |
download | ikiwiki-473bcbe7a42a4168cab82ed12185817248de045f.tar ikiwiki-473bcbe7a42a4168cab82ed12185817248de045f.tar.gz |
Corrected error: month pages were created even without calendar_autocreate config option
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/calendar.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/calendar.pm b/IkiWiki/Plugin/calendar.pm index 9639f6d08..e732b025e 100644 --- a/IkiWiki/Plugin/calendar.pm +++ b/IkiWiki/Plugin/calendar.pm @@ -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}); @@ -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}); |