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:
601b5c9
)
Remove left-over use of wfMsg
author
daniel
<daniel.kinzler@wikimedia.de>
Fri, 5 Oct 2012 13:15:11 +0000
(15:15 +0200)
committer
daniel
<daniel.kinzler@wikimedia.de>
Fri, 5 Oct 2012 13:15:11 +0000
(15:15 +0200)
Change-Id: If80d7bf69393a6c95797e1fe0732df7270d5184c
includes/content/ContentHandler.php
patch
|
blob
|
history
diff --git
a/includes/content/ContentHandler.php
b/includes/content/ContentHandler.php
index
294dafd
..
6d57e71
100644
(file)
--- a/
includes/content/ContentHandler.php
+++ b/
includes/content/ContentHandler.php
@@
-329,8
+329,9
@@
abstract class ContentHandler {
public static function getLocalizedName( $name ) {
$key = "content-model-$name";
- if ( wfEmptyMsg( $key ) ) return $name;
- else return wfMsg( $key );
+ $msg = wfMessage( $key );
+
+ return $msg->exists() ? $msg->plain() : $name;
}
public static function getContentModels() {