HookUtils: Fix checking page props

Follow-up to b4def00ed0.

Bug: T347878
Change-Id: Ia834b0f8d5cf48fce85e83af48d9fdcc789fc8e2
This commit is contained in:
Bartosz Dziewoński 2023-10-02 16:59:57 +02:00
parent 8da1d467d8
commit 9fb16a40dc

View file

@ -100,7 +100,7 @@ class HookUtils {
if ( !isset( static::$propCache[ $id ] ) ) {
$services = MediaWikiServices::getInstance();
// Always fetch all of our properties, we need to check several of them on most requests
static::$propCache[ $id ] =
static::$propCache +=
$services->getPageProps()->getProperties( $title, static::CACHED_PAGE_PROPS );
}
return isset( static::$propCache[ $id ][ $prop ] );