From 389fcbe1345433f251cb50bf11ba9172c8fd7787 Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 2 Jan 2016 03:05:05 +0000 Subject: [PATCH] wfEmptyMsg() was removed Bug: T70750 Change-Id: I8c641f5698da2b1ad18d3285b5705d3fe9a3e655 --- RELEASE-NOTES-1.27 | 1 + includes/GlobalFunctions.php | 16 ---------------- 2 files changed, 1 insertion(+), 16 deletions(-) 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 -- 2.20.1