summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-10-02 20:22:05 +0200
committerdklawren <dklawren@users.noreply.github.com>2018-10-02 20:22:05 +0200
commit62412db14081dd66cd5b2701b598b5af9eb31528 (patch)
tree7e84a852449e530a0b0bae5ef581eace63c81e83 /Bugzilla.pm
parentabe9b579f25120898b714d4b73343918169d48ac (diff)
downloadbugzilla-62412db14081dd66cd5b2701b598b5af9eb31528.tar.gz
bugzilla-62412db14081dd66cd5b2701b598b5af9eb31528.tar.xz
add helpers for handling logins and error handling
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index 05b231dcb..56020b230 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -483,6 +483,9 @@ sub usage_mode {
elsif ($newval == USAGE_MODE_REST) {
$class->error_mode(ERROR_MODE_REST);
}
+ elsif ($newval == USAGE_MODE_MOJO) {
+ $class->error_mode(ERROR_MODE_MOJO);
+ }
else {
ThrowCodeError('usage_mode_invalid',
{'invalid_usage_mode', $newval});