diff options
author | Simon McVittie <smcv@debian.org> | 2010-12-26 22:19:36 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2011-01-22 22:37:46 +0000 |
commit | 44547af279408ee794e022316eb15efb85418b08 (patch) | |
tree | f52b2f8d77ff4feb35179a97b2721b7503e77f7b /IkiWiki/Plugin | |
parent | 01d812decb7e3f3b2159f61e21448876d69baaa7 (diff) | |
download | ikiwiki-44547af279408ee794e022316eb15efb85418b08.tar ikiwiki-44547af279408ee794e022316eb15efb85418b08.tar.gz |
autoindex: default to autoindex_commit=1 as intended
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/autoindex.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/autoindex.pm b/IkiWiki/Plugin/autoindex.pm index 825633d5a..78571b276 100644 --- a/IkiWiki/Plugin/autoindex.pm +++ b/IkiWiki/Plugin/autoindex.pm @@ -7,6 +7,7 @@ use IkiWiki 3.00; use Encode; sub import { + hook(type => "checkconfig", id => "autoindex", call => \&checkconfig); hook(type => "getsetup", id => "autoindex", call => \&getsetup); hook(type => "refresh", id => "autoindex", call => \&refresh); IkiWiki::loadplugin("transient"); @@ -28,6 +29,12 @@ sub getsetup () { }, } +sub checkconfig () { + if (! defined $config{autoindex_commit}) { + $config{autoindex_commit} = 1; + } +} + sub genindex ($) { my $page=shift; my $file=newpagefile($page, $config{default_pageext}); |