From f8341386a0e2d0b441d653af2b70be1e90963c04 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Sun, 4 Dec 2016 14:08:41 +0100 Subject: [PATCH] Replace deprecated Linker::link() with LinkRenderer Bug: T149346 Change-Id: Icfb0a96735f8f69d73c8d597e6c7b033ca3bcf1f --- includes/EchoHooks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/EchoHooks.php b/includes/EchoHooks.php index 314075b10..53b42a2c1 100644 --- a/includes/EchoHooks.php +++ b/includes/EchoHooks.php @@ -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() ] );