summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Error.pm1
-rw-r--r--t/001compile.t1
2 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Error.pm b/Bugzilla/Error.pm
index 77a272e1e..864024794 100644
--- a/Bugzilla/Error.pm
+++ b/Bugzilla/Error.pm
@@ -25,7 +25,6 @@ use Date::Format;
sub _throw_error {
my ($name, $error, $vars) = @_;
- my $dbh = Bugzilla->dbh;
my $cache = Bugzilla->request_cache;
$vars ||= {};
diff --git a/t/001compile.t b/t/001compile.t
index da95b7327..e061b06c6 100644
--- a/t/001compile.t
+++ b/t/001compile.t
@@ -25,6 +25,7 @@ BEGIN {
use_ok('Bugzilla::Install::Requirements');
use_ok('Bugzilla');
}
+Bugzilla->usage_mode(USAGE_MODE_TEST);
sub compile_file {
my ($file) = @_;