mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-23 10:29:11 +00:00
HookUtils: Fix checking page props
Follow-up to b4def00ed0
.
Bug: T347878
Change-Id: Ia834b0f8d5cf48fce85e83af48d9fdcc789fc8e2
This commit is contained in:
parent
8da1d467d8
commit
9fb16a40dc
|
@ -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 ] );
|
||||
|
|
Loading…
Reference in a new issue