Merge "Avoid using User::getBoolOption()"

isekai
jenkins-bot 4 years ago committed by Gerrit Code Review
commit bda510e00c

@ -1012,7 +1012,10 @@ class TimelessTemplate extends BaseTemplate {
if ( isset( $allCats['hidden'] ) ) {
$hiddenCatClass = [ 'mw-hidden-catlinks' ];
if ( $skin->getUser()->getBoolOption( 'showhiddencats' ) ) {
if ( MediaWikiServices::getInstance()
->getUserOptionsLookup()
->getBoolOption( $skin->getUser(), 'showhiddencats' )
) {
$hiddenCatClass[] = 'mw-hidden-cats-user-shown';
} elseif ( $skin->getTitle()->getNamespace() == NS_CATEGORY ) {
$hiddenCatClass[] = 'mw-hidden-cats-ns-shown';

Loading…
Cancel
Save