diff options
author | Fomafix <fomafix@googlemail.com> | 2022-09-01 19:58:30 +0000 |
---|---|---|
committer | Fomafix <fomafix@googlemail.com> | 2022-09-06 05:56:45 +0000 |
commit | 8d819d052abb40c8d4a0485be84a1781b58fe081 (patch) | |
tree | b82644e31b3f68364808c5b7a17a12ad06cd3162 /includes/Title.php | |
parent | 0c81e15d4138ba6727e9f6bb337f17b0b2ba71d2 (diff) | |
download | mediawikicore-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.php | 2 |
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; |