summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Constants.pm
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-04-07 07:14:35 +0200
committerByron Jones <glob@mozilla.com>2015-04-07 07:14:35 +0200
commit280c184398d4e4de9c00c96ee9dff1d7e6724615 (patch)
tree3ec941eaf04523bc4a60576a754e966a12f3ed37 /Bugzilla/Constants.pm
parent50a1473b3c89bf8fe153cfd9c4c29a0de104d36d (diff)
downloadbugzilla-280c184398d4e4de9c00c96ee9dff1d7e6724615.tar.gz
bugzilla-280c184398d4e4de9c00c96ee9dff1d7e6724615.tar.xz
Bug 1146960: replace the version number on bmo with a build number
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r--Bugzilla/Constants.pm7
1 files changed, 6 insertions, 1 deletions
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.