From 280c184398d4e4de9c00c96ee9dff1d7e6724615 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 7 Apr 2015 13:14:35 +0800 Subject: Bug 1146960: replace the version number on bmo with a build number --- Bugzilla/Constants.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Constants.pm') diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index ad507c2ca..5e4240853 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -222,7 +222,12 @@ use Memoize; # CONSTANTS # # Bugzilla version -use constant BUGZILLA_VERSION => "4.2.11+"; +# BMO: we don't map exactly to a specific bugzilla version, so override our +# reported version with a parameter. +sub BUGZILLA_VERSION { + require Bugzilla; + return Bugzilla->params->{bugzilla_version} || '4.2+'; +} # A base link to the current REST Documentation. We place it here # as it will need to be updated to whatever the current release is. -- cgit v1.2.3-24-g4f1b