Merge "HookUtils: Fix checking page props"

This commit is contained in:
jenkins-bot 2023-10-02 16:22:11 +00:00 committed by Gerrit Code Review
commit 3d633a0717

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 ] );