use NEXT;
use File::MMagic::XS qw(:compat);
-our $VERSION = '2.12';
+our $VERSION = '2.12_pre1';
our $mmagic = File::MMagic::XS->new();
# proposed privacy conventions:
die "status undefined after start_request_hook()" unless defined
$self->status;
- $self->session($self->get_session);
- $self->user($self->get_user);
+ my $session = $self->get_session;
+ $self->session($self->{session} || $session);
+ my $user = $self->get_user;
+ $self->user($self->{user} || $user);
my $status = $self->handler_guts;
return $status unless $status == OK;
use Maypole::Constants;
use Template;
use File::Spec::Functions qw(catdir tmpdir);
+use Data::Dumper;
our $error_template;
{ local $/; $error_template = <DATA>; }
unless ($self->{tt}) {
my $view_options = $r->config->view_options || {};
if ($r->debug) {
- $view_options->{DEBUG} = 'undef';
+ $view_options->{DEBUG} = 0;
}
$self->{provider} = Template::Provider->new($view_options);
$self->{tt} = Template->new({