tempUserConfig = $tempUserConfig; $this->mAllowedRedirectParams = [ 'limit', 'ilshowall', 'ilsearch' ]; } /** * @param string|null $subpage * @return Title */ public function getRedirect( $subpage ) { // Redirect to login for anon users when temp accounts are enabled. if ( $this->tempUserConfig->isEnabled() && $this->getUser()->isAnon() ) { $this->requireLogin(); } return SpecialPage::getTitleFor( 'Listfiles', $this->getUser()->getName() ); } /** * Target identifies a specific User. See T109724. * * @since 1.27 * @return bool */ public function personallyIdentifiableTarget() { return true; } } /** * Retain the old class name for backwards compatibility. * @deprecated since 1.41 */ class_alias( SpecialMyuploads::class, 'SpecialMyuploads' );