Page MenuHomePhabricator

Fixup hardcoded usages of "User:" in CentralAuth
Closed, ResolvedPublic

Description

CentralAuthUser.php line 2399
$log->addEntry( $action, Title::newFromText( "User:{$this->mName}@global" ), $reason, $params );

SpecialCentralAuth.php line 679

		$numRows = LogEventsList::showLogExtract(
			$text,
			array( 'globalauth', 'suppress' ),
			Title::newFromText( "User:{$user}@global" )->getPrefixedText(),
			'',
			array( 'showIfEmpty' => true ) );

CentralAuthHooks.php line 886
$params['url'] = $wiki->getUrl( 'User:' . $user->getTitleKey() );

SpecialCentralAuth.php line 553

		return self::foreignLink(
			$wiki,
			'User:' . $this->mUserName,
			$wikiname,
			$this->msg( 'centralauth-foreign-link', $this->mUserName, $wikiname )->text()
		);

SpecialMergeAccount.php line 468 (same as SpecialCentralAuth.php above)

		return SpecialCentralAuth::foreignLink(
			$wiki,
			'User:' . $this->mUserName,
			$wikiname,
			$this->msg( 'centralauth-foreign-link', $this->mUserName, $wikiname )->text()
		);

Version: master
Severity: minor

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:23 AM
bzimport set Reference to bz48283.
bzimport added a subscriber: Unknown Object (MLST).

Related URL: https://gerrit.wikimedia.org/r/62941 (Gerrit Change I51a6dd5a8345f35b6eff2f1e2a41b3bb1c29ceaa)

Krinkle set Security to None.
Krinkle removed a subscriber: Unknown Object (MLST).

Change 499666 had a related patch set uploaded (by D3r1ck01; owner: Derick Alangi):
[mediawiki/extensions/CentralAuth@master] maintenance: Avoid hardcoding namespace "User talk:"

https://gerrit.wikimedia.org/r/499666

Change 499666 merged by jenkins-bot:
[mediawiki/extensions/CentralAuth@master] maintenance: Avoid hardcoding namespace "User talk:"

https://gerrit.wikimedia.org/r/499666

xSavitar claimed this task.