From: Reedy Date: Sat, 2 Jan 2016 03:05:05 +0000 (+0000) Subject: wfEmptyMsg() was removed X-Git-Tag: 1.31.0-rc.0~8486^2 X-Git-Url: https://git.cyclocoop.org/admin/?a=commitdiff_plain;h=389fcbe1345433f251cb50bf11ba9172c8fd7787;p=lhc%2Fweb%2Fwiklou.git wfEmptyMsg() was removed Bug: T70750 Change-Id: I8c641f5698da2b1ad18d3285b5705d3fe9a3e655 --- diff --git a/RELEASE-NOTES-1.27 b/RELEASE-NOTES-1.27 index b1a4ccbf9c..a243f36373 100644 --- a/RELEASE-NOTES-1.27 +++ b/RELEASE-NOTES-1.27 @@ -197,6 +197,7 @@ changes to languages because of Phabricator reports. * The maintenance/backupTextPass.inc file was deleted. You should include maintenance/dumpTextPass.php instead. * WikiPage::getUsedTemplates() was removed (deprecated since 1.19). +* wfEmptyMsg() was removed (deprecated since 1.18). == Compatibility == diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 47d086b2b1..075f69e55b 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1778,22 +1778,6 @@ function wfMsgExt( $key, $options ) { return $string; } -/** - * Since wfMsg() and co suck, they don't return false if the message key they - * looked up didn't exist but instead the key wrapped in <>'s, this function checks for the - * nonexistence of messages by checking the MessageCache::get() result directly. - * - * @deprecated since 1.18. Use Message::isDisabled(). - * - * @param string $key The message key looked up - * @return bool True if the message *doesn't* exist. - */ -function wfEmptyMsg( $key ) { - wfDeprecated( __METHOD__, '1.21' ); - - return MessageCache::singleton()->get( $key, /*useDB*/true, /*content*/false ) === false; -} - /** * Fetch server name for use in error reporting etc. * Use real server name if available, so we know which machine