mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-09-23 18:28:34 +00:00
Limit Recent Changes disable-table mode to Minerva skin
Bug: T228280 Change-Id: I6e2298d3721ec0d09f8867af89f22d26210ed6bb
This commit is contained in:
parent
2c070409f4
commit
c4c0254963
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue