Made wfMsg('') and wfMsg(null) silently return <> as it did before r52503. Thanks to those who supplied backtraces.
This commit is contained in:
parent
9e887423d4
commit
f0b42f5f64
1 changed files with 3 additions and 4 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue