]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/underlay.pm
(no commit message)
[git.ikiwiki.info.git] / IkiWiki / Plugin / underlay.pm
index 51b7693334aa6a02448c3bcd8663ccb438fc1e01..3ea19c63519bdecf6cd7331d21d722b3e0bc72de 100644 (file)
@@ -27,21 +27,14 @@ sub getsetup () {
                        safe => 0,
                        rebuild => 1,
                },
                        safe => 0,
                        rebuild => 1,
                },
-               add_templates => {
-                       type => "string",
-                       example => ["$ENV{HOME}/.ikiwiki/templates"],
-                       description => "extra template directories to add",
-                       advanced => 1,
-                       safe => 0,
-                       rebuild => 1,
-               },
 }
 
 sub checkconfig () {
 }
 
 sub checkconfig () {
-       foreach my $dir (@{$config{add_underlays}}) {
-               add_underlay($dir);
+       if ($config{add_underlays}) {
+               foreach my $dir (@{$config{add_underlays}}) {
+                       add_underlay($dir);
+               }
        }
        }
-       push @{$config{templatedirs}}, @{$config{add_templates}};
 }
 
 1;
 }
 
 1;