Merge "Limit Recent Changes disable-table mode to Minerva skin"

This commit is contained in:
jenkins-bot 2019-07-31 19:01:41 +00:00 committed by Gerrit Code Review
commit e030193ced
1 changed files with 7 additions and 5 deletions

View File

@ -38,13 +38,15 @@ class MinervaHooks {
* @param Skin &$skin
* @param array &$list
* @param array $groups
* @return bool
* @return bool|null
*/
public static function onFetchChangesList( User $user, Skin &$skin, &$list, $groups = [] ) {
// The new changes list (table-based) does not work with Minerva
$list = new OldChangesList( $skin->getContext(), $groups );
// returning false makes sure $list is used instead.
return false;
if ( $skin->getSkinName() === 'minerva' ) {
// The new changes list (table-based) does not work with Minerva
$list = new OldChangesList( $skin->getContext(), $groups );
// returning false makes sure $list is used instead.
return false;
}
}
/**