From 21dff188464d9470d903de00f9b40cde68639745 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 23 Apr 2011 17:42:34 +0000 Subject: [PATCH] wfMsgReal() -> wfMsg() or wfMsgNoTrans() --- includes/Status.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/includes/Status.php b/includes/Status.php index 372f8c6de1..01b824f68f 100644 --- a/includes/Status.php +++ b/includes/Status.php @@ -142,7 +142,7 @@ class Status { $params = $this->cleanParams( $item['params'] ); $xml = "<{$item['type']}>\n" . Xml::element( 'message', null, $item['message'] ) . "\n" . - Xml::element( 'text', null, wfMsgReal( $item['message'], $params ) ) ."\n"; + Xml::element( 'text', null, wfMsg( $item['message'], $params ) ) ."\n"; foreach ( $params as $param ) { $xml .= Xml::element( 'param', null, $param ); } @@ -211,17 +211,15 @@ class Status { protected function getWikiTextForError( $error ) { if ( is_array( $error ) ) { if ( isset( $error['message'] ) && isset( $error['params'] ) ) { - return wfMsgReal( $error['message'], - array_map( 'wfEscapeWikiText', $this->cleanParams( $error['params'] ) ), - true, false, false ); + return wfMsgNoTrans( $error['message'], + array_map( 'wfEscapeWikiText', $this->cleanParams( $error['params'] ) ) ); } else { $message = array_shift($error); - return wfMsgReal( $message, - array_map( 'wfEscapeWikiText', $this->cleanParams( $error ) ), - true, false, false ); + return wfMsgNoTrans( $message, + array_map( 'wfEscapeWikiText', $this->cleanParams( $error ) ) ); } } else { - return wfMsgReal( $error, array(), true, false, false); + return wfMsgNoTrans( $error ); } } -- 2.20.1