}
sub checkconfig () {
- foreach my $dir (@{$config{add_underlays}}) {
- add_underlay($dir);
+ if ($config{add_underlays}) {
+ foreach my $dir (@{$config{add_underlays}}) {
+ add_underlay($dir);
+ }
+ }
+ if ($config{add_templates}) {
+ push @{$config{templatedirs}}, @{$config{add_templates}};
}
- push @{$config{templatedirs}}, @{$config{add_templates}};
}
1;
* underlay: Fix example values put in setup file to be array
references.
+ * underlay: Avoid crashing if lists of underlays (or template
+ directories) are not configured.
-- Joey Hess <joeyh@debian.org> Fri, 06 Nov 2009 12:04:29 -0500