summaryrefslogtreecommitdiffstats
path: root/extensions/OldBugMove
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-12-12 19:55:17 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-12-12 19:55:17 +0100
commit9fe88ea66a28168e940bf02038d4055a5e00a4ee (patch)
treea18447396b5866da06fa51f6132a4707f8f8462d /extensions/OldBugMove
parentfae7f1233435d9d13413b41181bb41ee8b51e8c9 (diff)
downloadbugzilla-9fe88ea66a28168e940bf02038d4055a5e00a4ee.tar.gz
bugzilla-9fe88ea66a28168e940bf02038d4055a5e00a4ee.tar.xz
Bug 618161: Make VERSION into a constant in two included extensions so that
calling $class->VERSION on them won't throw an error on Perl 5.12 when there are non-numeric characters in BUGZILLA_VERSION. r=LpSolit, a=LpSolit
Diffstat (limited to 'extensions/OldBugMove')
-rw-r--r--extensions/OldBugMove/Extension.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/OldBugMove/Extension.pm b/extensions/OldBugMove/Extension.pm
index 3aca16a57..b12d36a9a 100644
--- a/extensions/OldBugMove/Extension.pm
+++ b/extensions/OldBugMove/Extension.pm
@@ -32,12 +32,12 @@ use Bugzilla::Util qw(trim);
use Scalar::Util qw(blessed);
use Storable qw(dclone);
+use constant VERSION => BUGZILLA_VERSION;
+
# This is 4 because that's what it originally was when this code was
# a part of Bugzilla.
use constant CMT_MOVED_TO => 4;
-our $VERSION = BUGZILLA_VERSION;
-
sub install_update_db {
my $reso_type = Bugzilla::Field::Choice->type('resolution');
my $moved_reso = $reso_type->new({ name => 'MOVED' });