]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Setup.pm
patch hidden field setting code
[git.ikiwiki.info.git] / IkiWiki / Setup.pm
index 2cf01ea684e634da1b8bb4e0254256ca3507e59c..06102058b1e77a64249ed88a4eaa3d9782069043 100644 (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)