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:
9e88742
)
Made wfMsg('') and wfMsg(null) silently return <> as it did before r52503....
author
Tim Starling
<tstarling@users.mediawiki.org>
Fri, 10 Jul 2009 11:54:32 +0000
(11:54 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Fri, 10 Jul 2009 11:54:32 +0000
(11:54 +0000)
includes/MessageCache.php
patch
|
blob
|
history
diff --git
a/includes/MessageCache.php
b/includes/MessageCache.php
index
458ec8f
..
351c65d
100644
(file)
--- a/
includes/MessageCache.php
+++ b/
includes/MessageCache.php
@@
-501,10
+501,9
@@
class MessageCache {
function get( $key, $useDB = true, $langcode = true, $isFullKey = false ) {
global $wgContLanguageCode, $wgContLang;
- if ( !is_string( $key ) ) {
- throw new MWException( __METHOD__.': Invalid message key of type ' . gettype( $key ) );
- } elseif ( $key === '' ) {
- throw new MWException( __METHOD__.': Invaild message key: empty string' );
+ if ( strval( $key ) === '' ) {
+ # Shortcut: the empty key is always missing
+ return '<>';
}
$lang = wfGetLangObj( $langcode );