diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-03-21 14:52:21 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-03-21 14:52:21 -0400 |
commit | 85778f59fd0d84410f6e4191802e634b0f3c8935 (patch) | |
tree | e09730c33e45a9cc66ac2ca13709b1b2d58167ce /IkiWiki | |
parent | aea5bf9b40f6676e93f987c28d9f2aa23608f5da (diff) | |
download | ikiwiki-85778f59fd0d84410f6e4191802e634b0f3c8935.tar ikiwiki-85778f59fd0d84410f6e4191802e634b0f3c8935.tar.gz |
check for 'require' instead of 'use'
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Setup.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Setup.pm b/IkiWiki/Setup.pm index 2cf01ea68..06102058b 100644 --- a/IkiWiki/Setup.pm +++ b/IkiWiki/Setup.pm @@ -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) |