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 Skin &$skin
|
||||||
* @param array &$list
|
* @param array &$list
|
||||||
* @param array $groups
|
* @param array $groups
|
||||||
* @return bool
|
* @return bool|null
|
||||||
*/
|
*/
|
||||||
public static function onFetchChangesList( User $user, Skin &$skin, &$list, $groups = [] ) {
|
public static function onFetchChangesList( User $user, Skin &$skin, &$list, $groups = [] ) {
|
||||||
// The new changes list (table-based) does not work with Minerva
|
if ( $skin->getSkinName() === 'minerva' ) {
|
||||||
$list = new OldChangesList( $skin->getContext(), $groups );
|
// The new changes list (table-based) does not work with Minerva
|
||||||
// returning false makes sure $list is used instead.
|
$list = new OldChangesList( $skin->getContext(), $groups );
|
||||||
return false;
|
// returning false makes sure $list is used instead.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue