small improvements to some factory templates
fix to path handling in mod_perl and CGI when location ends in /
fixed template path ordering so i.e. /tablename/list is used before /list when provided with a tablename
+ fixed template path with array refs
2.11 Mon 31 July 2006
# conditionally, broke lots of tests, hence this:
$self->$_(undef) for qw/action table args/;
$self->preprocess_path;
- $self->path || $self->path('frontpage');
+
+ # use frontpage template for frontpage
+ unless ($self->path && $self->path ne '/') {
+ $self->path('frontpage');
+ }
my @pi = grep {length} split '/', $self->path;
my ($self, $r, $error, $type) = @_;
my $output;
- warn "self : $self, r : $r, error : $error, type : $type\n";
-
# Need to be very careful here.
my $tt = Template->new;
unless (ref $r->{config}) {
$error .= '<br> There was a problem finding configuration for this request';
$r->{config} ||= {};
}
+
+ $r->warn("report_error - reporting error to user : $error\n");
+
if ($tt->process(\$error_template,
{ err_type => $type, error => $error,
config => $r->{config},
request => $r,
- paths => $self->paths($r),
+ paths => [ $self->paths($r) ],
eval{$self->vars($r)} }, \$output )) {
$r->{output} = $output;
if ($tt->error) { $r->{output} = "<html><body>Even the error template