http://www.mediawiki.org/wiki/Special:Code/MediaWiki/64034
Revision: 64034 Author: ashley Date: 2010-03-22 18:39:53 +0000 (Mon, 22 Mar 2010) Log Message: ----------- braces, spacing + comment tweaks Modified Paths: -------------- trunk/phase3/includes/Message.php Modified: trunk/phase3/includes/Message.php =================================================================== --- trunk/phase3/includes/Message.php 2010-03-22 18:14:25 UTC (rev 64033) +++ trunk/phase3/includes/Message.php 2010-03-22 18:39:53 UTC (rev 64034) @@ -23,7 +23,7 @@ * * Shortcut for escaping the message too, similar to wfMsgHTML, but * parameters are not replaced after escaping by default. - * $escaped = Message::key( 'key' )->rawParam( 'apple' ).escaped(); + * $escaped = Message::key( 'key' )->rawParam( 'apple' )->escaped(); * * TODO: * * document everything @@ -86,7 +86,6 @@ * @param $value Array: list of parameters, array keys will be ignored. * @return Message: reference to the object */ - public function paramList( array $values ) { $this->parameters += array_values( $values ); return $this; @@ -166,7 +165,9 @@ protected function transformText( $string ) { global $wgMessageCache; - if ( !isset( $wgMessageCache ) ) return $string; + if ( !isset( $wgMessageCache ) ) { + return $string; + } // FIXME: handle second param correctly return $wgMessageCache->transform( $string, true, $this->getLanguage() ); } _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs