diff --git a/includes/TimelessTemplate.php b/includes/TimelessTemplate.php index fa69d52..bf71842 100644 --- a/includes/TimelessTemplate.php +++ b/includes/TimelessTemplate.php @@ -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';