fix to display_line macro in factory templates (bug 22920)
fix to correct problem with LocationMatch and regex based Location directives in apache config.
change to view::base to only call display_columns, stringify_columns, to_cgi if model class can
+ changed template path to only look for custom, factory, etc on first/only path provided
2.11 Mon 31 July 2006
$root = [ $root ];
}
my @output = ();
+ my $i = 0;
foreach my $path (@$root) {
push(@output,
(
&& File::Spec->catdir( $path, $r->model_class->table )
)
);
- push(@output, File::Spec->catdir( $path, "custom" ));
+ push(@output, File::Spec->catdir( $path, "custom" )) unless ($i);
push(@output, $path);
- push(@output, File::Spec->catdir( $path, "factory" ));
+ push(@output, File::Spec->catdir( $path, "factory" )) unless ($i);
+ $i = 1;
}
return grep( $_, @output);