Merge "GlobalFunctions: Hard-deprecate wfUseMW, unused"
This commit is contained in:
commit
7a206823e3
2 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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" );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue