aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-04-22 14:35:00 -0400
committerJoey Hess <joey@kitenet.net>2010-04-22 14:35:00 -0400
commit23d62f42bd8fe18087cd293962a79d937cf5a3bc (patch)
treebdf3066bc21d9f9c00305dc2ca80f7859944f0e0 /IkiWiki.pm
parent584391aedd2f5392db7e9d3d46cf202d6cb8e951 (diff)
downloadikiwiki-23d62f42bd8fe18087cd293962a79d937cf5a3bc.tar
ikiwiki-23d62f42bd8fe18087cd293962a79d937cf5a3bc.tar.gz
remove add_templates option
Templates are moving into the srcdir, and will also be searched for in configured underlays, so this is redundant.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm9
1 files changed, 1 insertions, 8 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index ec8b32a63..c2c2337b4 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -157,13 +157,6 @@ sub getsetup () {
safe => 0, # path
rebuild => 1,
},
- templatedirs => {
- type => "internal",
- default => [],
- description => "additional directories containing template files",
- safe => 0,
- rebuild => 0,
- },
underlaydir => {
type => "string",
default => "$installdir/share/ikiwiki/basewiki",
@@ -1661,7 +1654,7 @@ sub saveindex () {
sub template_file ($) {
my $template=shift;
- foreach my $dir ($config{templatedir}, @{$config{templatedirs}},
+ foreach my $dir ($config{templatedir},
"$installdir/share/ikiwiki/templates") {
return "$dir/$template" if -e "$dir/$template";
}