Drop global function wfConfiguredReadOnlyReason, deprecated in 1.36

No uses known in code search.

Bug: T264979
Change-Id: Ifcc375333fb5b1e46b9198462d67d34673b92e5f
This commit is contained in:
James D. Forrester 2021-05-10 15:07:17 -07:00
parent cd9cf8d081
commit b7ff9dfe0c
2 changed files with 1 additions and 13 deletions

View file

@ -208,6 +208,7 @@ because of Phabricator reports.
* The following global methods, each deprecated since 1.36, have been removed:
- wfAppendToArrayIfNotDefault
- wfAcceptToPrefs
- wfConfiguredReadOnlyReason
- wfDebugMem
*

View file

@ -1114,19 +1114,6 @@ function wfReadOnlyReason() {
->getReason();
}
/**
* Get the value of $wgReadOnly or the contents of $wgReadOnlyFile.
*
* @return string|bool String when in read-only mode; false otherwise
* @since 1.27
* @deprecated since 1.36
*/
function wfConfiguredReadOnlyReason() {
wfDeprecated( __FUNCTION__, '1.36' );
return MediaWikiServices::getInstance()->getConfiguredReadOnlyMode()
->getReason();
}
/**
* Return a Language object from $langcode
*