check for 'require' instead of 'use'

master
Joey Hess 2010-03-21 14:52:21 -04:00
parent aea5bf9b40
commit 85778f59fd
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ sub load ($;$) {
}
close IN;
if ($content=~/(use\s+)?IkiWiki::Setup::(\w+)/) {
if ($content=~/((?:use|require)\s+)?IkiWiki::Setup::(\w+)/) {
$config{setuptype}=$2;
if ($1) {
error sprintf(gettext("cannot load %s in safe mode"), $file)