Remove "uploads" link from userpages in AMC mode

This follows up I0d7eb72a2663f1d1138afe09124a154ad0502498

Bug: T233985
Change-Id: I25cc6cd261cd92cd76ea914c73b2cd8d82fa9213
This commit is contained in:
jdlrobson 2019-10-03 10:01:14 -07:00 committed by Jdlrobson
parent b962edb559
commit 14476b4bd1

View file

@ -30,7 +30,6 @@ use MessageLocalizer;
use MinervaUI;
use MWException;
use Title;
use SpecialPage;
use User;
class UserNamespaceOverflowBuilder implements IOverflowBuilder {
@ -98,9 +97,6 @@ class UserNamespaceOverflowBuilder implements IOverflowBuilder {
'minerva-page-actions-language-switcher'
) );
}
$group->insertEntry( $this->build(
'uploads', 'upload', SpecialPage::getTitleFor( 'Uploads', $this->pageUser )->getLocalURL()
) );
$possibleEntries = array_filter( [
$this->buildFromToolbox( 'user-groups', 'userGroup', 'userrights', $toolbox ),