# Fetch existence plus the hiddencat property
$dbr = wfGetDB( DB_SLAVE );
- $fields = [ 'page_id', 'page_namespace', 'page_title', 'page_len',
- 'page_is_redirect', 'page_latest', 'pp_value' ];
-
- if ( $this->getConfig()->get( 'ContentHandlerUseDB' ) ) {
- $fields[] = 'page_content_model';
- }
- if ( $this->getConfig()->get( 'PageLanguageUseDB' ) ) {
- $fields[] = 'page_lang';
- }
+ $fields = array_merge(
+ LinkCache::getSelectFields(),
+ [ 'page_namespace', 'page_title', 'pp_value' ]
+ );
$res = $dbr->select( [ 'page', 'page_props' ],
$fields,
$links[] = $this->makeResourceLoaderLink( 'user', ResourceLoaderModule::TYPE_COMBINED );
}
- // Group JS is only enabled if site JS is enabled.
- $links[] = $this->makeResourceLoaderLink(
- 'user.groups',
- ResourceLoaderModule::TYPE_COMBINED
- );
-
return self::getHtmlFromLoaderLinks( $links );
}
$moduleStyles = $this->getModuleStyles();
// Per-site custom styles
- $moduleStyles[] = 'site';
+ $moduleStyles[] = 'site.styles';
$moduleStyles[] = 'noscript';
- $moduleStyles[] = 'user.groups';
// Per-user custom styles
if ( $this->getConfig()->get( 'AllowUserCss' ) && $this->getTitle()->isCssSubpage()