summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Config/Core.pm6
-rw-r--r--Bugzilla/Constants.pm7
2 files changed, 12 insertions, 1 deletions
diff --git a/Bugzilla/Config/Core.pm b/Bugzilla/Config/Core.pm
index 1548dcd9c..3d6a00e70 100644
--- a/Bugzilla/Config/Core.pm
+++ b/Bugzilla/Config/Core.pm
@@ -46,6 +46,12 @@ use constant get_param_list => (
},
{
+ name => 'bugzilla_version',
+ type => 't',
+ default => '',
+ },
+
+ {
name => 'ssl_redirect',
type => 'b',
default => 0
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.