mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 09:26:05 +00:00
Replace deprecated Linker::link() with LinkRenderer
Bug: T149346 Change-Id: Icfb0a96735f8f69d73c8d597e6c7b033ca3bcf1f
This commit is contained in:
parent
bacee60d42
commit
f8341386a0
|
@ -306,9 +306,9 @@ class EchoHooks {
|
|||
|
||||
// Display information about the user's currently set email address
|
||||
$prefsTitle = SpecialPage::getTitleFor( 'Preferences', false, 'mw-prefsection-echo' );
|
||||
$link = Linker::link(
|
||||
$link = MediaWikiServices::getInstance()->getLinkRenderer()->makeLink(
|
||||
SpecialPage::getTitleFor( 'ChangeEmail' ),
|
||||
wfMessage( $user->getEmail() ? 'prefs-changeemail' : 'prefs-setemail' )->escaped(),
|
||||
wfMessage( $user->getEmail() ? 'prefs-changeemail' : 'prefs-setemail' )->text(),
|
||||
[],
|
||||
[ 'returnto' => $prefsTitle->getFullText() ]
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue