From 8d819d052abb40c8d4a0485be84a1781b58fe081 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Thu, 1 Sep 2022 19:58:30 +0000 Subject: 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 --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/Title.php') 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; -- cgit v1.2.3