tempUserConfig = $tempUserConfig; } /** * @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(); } if ( $subpage === null || $subpage === '' ) { return Title::makeTitle( NS_USER_TALK, $this->getUser()->getName() ); } return Title::makeTitle( NS_USER_TALK, $this->getUser()->getName() . '/' . $subpage ); } /** * 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( SpecialMytalk::class, 'SpecialMytalk' );