diff options
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r-- | Bugzilla.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index 265235be5..d5e49bb8d 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -203,7 +203,8 @@ sub init_page { ##################################################################### sub template { - request_cache->{template} ||= Bugzilla::Template->create(); + my (undef, $template) = @_; + request_cache->{template} //= $template // Bugzilla::Template->create(); request_cache->{template}->{_is_main} = 1; return request_cache->{template}; @@ -575,7 +576,7 @@ sub usage_mode { elsif ($newval == USAGE_MODE_REST) { $class->error_mode(ERROR_MODE_REST); } - elsif ($newval == USAGE_MODE_MOJO) { + elsif ($newval == USAGE_MODE_QUANTUM) { $class->error_mode(ERROR_MODE_DIE); } else { |