Add missing requirement of IkiWiki::render before starting to render things

master
Simon McVittie 2008-07-12 22:52:46 +01:00
parent 85cc90cccd
commit bed1f1037a
2 changed files with 4 additions and 1 deletions

View File

@ -97,6 +97,8 @@ sub setup () { #{{{
loadplugins(); loadplugins();
checkconfig(); checkconfig();
require IkiWiki::Render;
if ($config{render}) { if ($config{render}) {
commandline_render(); commandline_render();
} }

View File

@ -3,4 +3,5 @@ After building a fresh deb from current Git master (9b62dac4bcf62f3a1f76ec5a7ed5
$ ikiwiki --setup ~/ikiwiki.setup --rebuild $ ikiwiki --setup ~/ikiwiki.setup --rebuild
Undefined subroutine &IkiWiki::refresh called at /usr/share/perl5/IkiWiki/Setup.pm line 113. Undefined subroutine &IkiWiki::refresh called at /usr/share/perl5/IkiWiki/Setup.pm line 113.
> Patch coming soon to the "bugs" branch in http://git.debian.org/?p=users/smcv/ikiwiki.git --smcv > [[done]], it just needed "require IkiWiki::Render" before it started
> rendering. --[[smcv]]