Use of undefined constant MW_VERSION - TranslateHooks.php - Line #49
Closed, ResolvedPublicBUG REPORT

Description

Steps to Reproduce:

Open any page on MW version 1.34 with Translate extension installed

Actual Results:

A warning appears stating that:

Warning: Use of undefined constant MW_VERSION - assumed MW_VERSION (this will throw an Error in a future version of PHP) in /MediaWiki/mlebtesting/core/extensions/Translate/TranslateHooks.php on line 49

Expected Results:

No warning should appear.

Further Comments:

This issue will happen on MLEB 2020.07 with MW 1.34 but was not noticed since we did not have notices enabled on the test server.

Related Objects

Event Timeline

Change 636550 had a related patch set uploaded (by Abijeet Patro; owner: Abijeet Patro):
[mediawiki/extensions/Translate@master] Add a utility method to fetch MediaWiki version

https://gerrit.wikimedia.org/r/636550

Change 636550 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Add a utility method to fetch MediaWiki version

https://gerrit.wikimedia.org/r/636550

This fix was tested and released along with MLEB 2020.10