Corrected error: month pages were created even without calendar_autocreate config option

master
Louis 2014-11-14 14:59:37 +01:00
parent d0b3495124
commit 473bcbe7a4
1 changed files with 2 additions and 2 deletions

View File

@ -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});