summaryrefslogtreecommitdiffstats
path: root/extensions/Splinter
diff options
context:
space:
mode:
authorFrédéric Buclin <lpsolit@gmail.com>2012-03-07 18:45:35 +0100
committerByron Jones <bjones@mozilla.com>2012-03-07 18:45:35 +0100
commitce7a61ad5c0b5f8b8bddb717eac0b529a3970af9 (patch)
tree23ba54fc6f49013767bc64fa02924917878b4a9e /extensions/Splinter
parent4d7d97b3aac40b54ec9b36259710e6ba182a06ae (diff)
downloadbugzilla-ce7a61ad5c0b5f8b8bddb717eac0b529a3970af9.tar.gz
bugzilla-ce7a61ad5c0b5f8b8bddb717eac0b529a3970af9.tar.xz
Bug 731850: performance improvments to the inline-history extension
Diffstat (limited to 'extensions/Splinter')
-rw-r--r--extensions/Splinter/Extension.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/Splinter/Extension.pm b/extensions/Splinter/Extension.pm
index 75c0dbb0c..9c8be4beb 100644
--- a/extensions/Splinter/Extension.pm
+++ b/extensions/Splinter/Extension.pm
@@ -20,9 +20,7 @@ our $VERSION = '0.1';
sub page_before_template {
my ($self, $args) = @_;
-
my ($vars, $page) = @$args{qw(vars page_id)};
- my $input = Bugzilla->input_params;
if ($page eq 'splinter.html') {
# Login is required for performing a review
@@ -34,6 +32,7 @@ sub page_before_template {
# If both are give they will be checked later to make
# sure they are connected.
+ my $input = Bugzilla->input_params;
if ($input->{'bug'}) {
$vars->{'bug_id'} = $input->{'bug'};
$vars->{'attach_id'} = $input->{'attachment'};