This allows plugins to getopt and change what is done before an incorrect
line is printed.
} #}}}
sub commandline_render () { #{{{
- loadplugins();
- checkconfig();
lockwiki();
loadindex();
unlockwiki();
$config{$c}=undef;
}
}
+
+ loadplugins();
+ checkconfig();
if ($config{render}) {
commandline_render();
}
- elsif (! $config{refresh}) {
+
+ if (! $config{refresh}) {
$config{rebuild}=1;
debug(gettext("rebuilding wiki.."));
}
debug(gettext("refreshing wiki.."));
}
- loadplugins();
- checkconfig();
lockwiki();
loadindex();
refresh();