summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-04-08 01:20:00 +0200
committerDylan William Hardison <dylan@hardison.net>2018-06-28 22:41:55 +0200
commit541e2b41af8cc44ad3eb0638618bc457c666d612 (patch)
tree121866bb37e4b06ffd7320679772d77271158661 /Bugzilla.pm
parentcdc26a69674ea7a3413efce2f8d4e3225c6ab76e (diff)
downloadbugzilla-541e2b41af8cc44ad3eb0638618bc457c666d612.tar.gz
bugzilla-541e2b41af8cc44ad3eb0638618bc457c666d612.tar.xz
a bit of a quantum leap
It's now possible to load the CGIs into a mojolicious controller. Compatibility isn't 100% yet, but it should give a migration path for any random CGI to become a proper controller.
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm5
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 {