From: Alexandre Emsenhuber Date: Mon, 20 Jun 2011 07:26:14 +0000 (+0000) Subject: Removed deprecated functions wfMsgNoDB(), wfMsgNoDBForContent() and wfMsgWeirdKey... X-Git-Tag: 1.31.0-rc.0~29404 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=750b3928d6a885fdc01a3bd2da9025a3110707ef;p=lhc%2Fweb%2Fwiklou.git Removed deprecated functions wfMsgNoDB(), wfMsgNoDBForContent() and wfMsgWeirdKey(); no remaining use in core or extensions. --- diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 4de4c8ba67..141bef8552 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1023,38 +1023,6 @@ function wfMsgForContentNoTrans( $key ) { return wfMsgReal( $key, $args, true, $forcontent, false ); } -/** - * Get a message from the language file, for the UI elements - * - * @deprecated since 1.18; use wfMessage() - */ -function wfMsgNoDB( $key ) { - wfDeprecated( __FUNCTION__ ); - $args = func_get_args(); - array_shift( $args ); - return wfMsgReal( $key, $args, false ); -} - -/** - * Get a message from the language file, for the content - * - * @deprecated since 1.18; use wfMessage() - */ -function wfMsgNoDBForContent( $key ) { - wfDeprecated( __FUNCTION__ ); - global $wgForceUIMsgAsContentMsg; - $args = func_get_args(); - array_shift( $args ); - $forcontent = true; - if( is_array( $wgForceUIMsgAsContentMsg ) && - in_array( $key, $wgForceUIMsgAsContentMsg ) ) - { - $forcontent = false; - } - return wfMsgReal( $key, $args, false, $forcontent ); -} - - /** * Really get a message * @@ -1073,22 +1041,6 @@ function wfMsgReal( $key, $args, $useDB = true, $forContent = false, $transform return $message; } -/** - * This function provides the message source for messages to be edited which are *not* stored in the database. - * - * @deprecated since 1.18; use wfMessage() - * @param $key String - */ -function wfMsgWeirdKey( $key ) { - wfDeprecated( __FUNCTION__ ); - $source = wfMsgGetKey( $key, false, true, false ); - if ( wfEmptyMsg( $key ) ) { - return ''; - } else { - return $source; - } -} - /** * Fetch a message string value, but don't replace any keys yet. *