dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0e5f0e0
)
braces, spacing + comment tweaks
author
Jack Phoenix
<ashley@users.mediawiki.org>
Mon, 22 Mar 2010 18:39:53 +0000
(18:39 +0000)
committer
Jack Phoenix
<ashley@users.mediawiki.org>
Mon, 22 Mar 2010 18:39:53 +0000
(18:39 +0000)
includes/Message.php
patch
|
blob
|
history
diff --git
a/includes/Message.php
b/includes/Message.php
index
ccc9242
..
4048c86
100644
(file)
--- a/
includes/Message.php
+++ b/
includes/Message.php
@@
-23,7
+23,7
@@
*
* Shortcut for escaping the message too, similar to wfMsgHTML, but
* parameters are not replaced after escaping by default.
*
* 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
*
* TODO:
* * document everything
@@
-86,7
+86,6
@@
class Message {
* @param $value Array: list of parameters, array keys will be ignored.
* @return Message: reference to the object
*/
* @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;
public function paramList( array $values ) {
$this->parameters += array_values( $values );
return $this;
@@
-166,7
+165,9
@@
class Message {
protected function transformText( $string ) {
global $wgMessageCache;
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() );
}
// FIXME: handle second param correctly
return $wgMessageCache->transform( $string, true, $this->getLanguage() );
}