aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Title.php
diff options
context:
space:
mode:
authorFomafix <fomafix@googlemail.com>2022-09-01 19:58:30 +0000
committerFomafix <fomafix@googlemail.com>2022-09-06 05:56:45 +0000
commit8d819d052abb40c8d4a0485be84a1781b58fe081 (patch)
treeb82644e31b3f68364808c5b7a17a12ad06cd3162 /includes/Title.php
parent0c81e15d4138ba6727e9f6bb337f17b0b2ba71d2 (diff)
downloadmediawikicore-8d819d052abb40c8d4a0485be84a1781b58fe081.tar.gz
mediawikicore-8d819d052abb40c8d4a0485be84a1781b58fe081.zip
Restore negative response cache in getDbPageLanguageCode
A null in $this->mDbPageLanguage indicates that there is no value in the database and a further query is not needed. This function was lost in fd3a6952303 but still documented in variable private $mDbPageLanguage. Change-Id: I4d4d9fd0052661bd29885f082b467ed4a0255032
Diffstat (limited to 'includes/Title.php')
-rw-r--r--includes/Title.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/Title.php b/includes/Title.php
index 2affe5d9591b..f2e1a28e57c5 100644
--- a/includes/Title.php
+++ b/includes/Title.php
@@ -3904,7 +3904,7 @@ class Title implements LinkTarget, PageIdentity, IDBAccessObject {
// check, if the page language could be saved in the database, and if so and
// the value is not requested already, lookup the page language using PageStore
if ( $wgPageLanguageUseDB && $this->mDbPageLanguage === false ) {
- $this->mDbPageLanguage = $this->getFieldFromPageStore( 'page_lang', $flags );
+ $this->mDbPageLanguage = $this->getFieldFromPageStore( 'page_lang', $flags ) ?: null;
}
return $this->mDbPageLanguage ?: null;