From 970190150a40d4bd574a1a84ac640ec44318869e Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Wed, 31 May 2017 17:48:17 -0400 Subject: Bug 1365734 - Handle BMO version number in Makefile.PL / MYMETA.json --- Bugzilla/Constants.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/Constants.pm') diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index 852c9c362..7d5f6fa2e 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -208,7 +208,7 @@ use Memoize; sub BUGZILLA_VERSION { my $bugzilla_version = '4.2'; eval { require Bugzilla } || return $bugzilla_version; - return Bugzilla->params->{bugzilla_version} || $bugzilla_version; + eval { Bugzilla->VERSION } || $bugzilla_version; } # A base link to the current REST Documentation. We place it here -- cgit v1.2.3-24-g4f1b