Skip to content

Commit 1fe2e8a

Browse files
committed
PLATFORM-10342| avoid deprecation messages when calling getMsgFromNamespace()
1 parent 9fdea0f commit 1fe2e8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/language/MessageCache.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1352,7 +1352,7 @@ public function getMsgFromNamespace( $title, $code ) {
13521352
$entry = $this->loadCachedMessagePageEntry(
13531353
$title,
13541354
$code,
1355-
$this->cache->getField( $code, 'HASH' )
1355+
$this->cache->getField( $code, 'HASH' ) || ''
13561356
);
13571357
} else {
13581358
// Message page either does not exist or does not override a software message
@@ -1363,7 +1363,7 @@ public function getMsgFromNamespace( $title, $code ) {
13631363
$entry = $this->loadCachedMessagePageEntry(
13641364
$title,
13651365
$code,
1366-
$this->cache->getField( $code, 'HASH' )
1366+
$this->cache->getField( $code, 'HASH' ) || ''
13671367
);
13681368
}
13691369
if ( $entry === null || substr( $entry, 0, 1 ) !== ' ' ) {

0 commit comments

Comments
 (0)