tempUserConfig = $tempUserConfig; $this->mAllowedRedirectParams = [ 'limit', 'namespace', 'tagfilter', 'offset', 'dir', 'year', 'month', 'feed', 'deletedOnly', 'nsInvert', 'associated', 'newOnly', 'topOnly', 'start', 'end', 'returnto' ]; } /** * @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( 'Contributions', $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( SpecialMycontributions::class, 'SpecialMycontributions' );