Merge "GlobalFunctions: Hard-deprecate wfUseMW, unused"

This commit is contained in:
jenkins-bot 2018-07-29 00:32:46 +00:00 committed by Gerrit Code Review
commit 7a206823e3
2 changed files with 3 additions and 0 deletions

View file

@ -303,6 +303,7 @@ because of Phabricator reports.
do your own lookup for page/content. mNewRev / mOldRev remains public.
* The $wgExternalDiffEngine value 'wikidiff2' is deprecated. To use wikidiff2
just enable the PHP extension, and it will be autodetected.
* The wfUseMW function, soft-deprecated in 1.26, is now hard deprecated.
=== Other changes in 1.32 ===
* (T198811) The following tables have had their UNIQUE indexes turned into

View file

@ -2529,6 +2529,8 @@ function wfUsePHP( $req_ver ) {
function wfUseMW( $req_ver ) {
global $wgVersion;
wfDeprecated( __FUNCTION__, '1.26' );
if ( version_compare( $wgVersion, (string)$req_ver, '<' ) ) {
throw new MWException( "MediaWiki $req_ver required--this is only $wgVersion" );
}