jenkins-bot has submitted this change and it was merged.

Change subject: Replace deprecated Linker::link() with 
MediaWiki\Linker\LinkRenderer
......................................................................


Replace deprecated Linker::link() with MediaWiki\Linker\LinkRenderer

Bug: T121145
Change-Id: I3d16e7b84094bc01e4faaefdce22c9586b314192
---
M frontend/specialpages/actions/ConfirmAccount_body.php
M frontend/specialpages/actions/RequestAccount_body.php
M frontend/specialpages/actions/UserCredentials_body.php
3 files changed, 12 insertions(+), 7 deletions(-)

Approvals:
  Aaron Schulz: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/frontend/specialpages/actions/ConfirmAccount_body.php 
b/frontend/specialpages/actions/ConfirmAccount_body.php
index e1c14f1..51d3589 100644
--- a/frontend/specialpages/actions/ConfirmAccount_body.php
+++ b/frontend/specialpages/actions/ConfirmAccount_body.php
@@ -127,10 +127,11 @@
                } else {
                        $listLink = $this->msg( 'confirmaccount-showopen' 
)->escaped();
                }
+               $linkRenderer = $this->getLinkRenderer();
                if ( $this->acrID || !$this->showHeld ) {
                        $listLink = $this->getLanguage()->pipeList( [
                                $listLink,
-                               Linker::linkKnown(
+                               $linkRenderer->makeKnownLink(
                                        $titleObj,
                                        $this->msg( 'confirmaccount-showheld' 
)->escaped(),
                                        [],
@@ -146,7 +147,7 @@
                if ( $this->acrID || !$this->showRejects ) {
                        $listLink = $this->getLanguage()->pipeList( [
                                $listLink,
-                               Linker::linkKnown(
+                               $linkRenderer->makeKnownLink(
                                        $titleObj,
                                        $this->msg( 'confirmaccount-showrej' 
)->escaped(),
                                        [],
@@ -162,7 +163,7 @@
                if ( $this->acrID || !$this->showStale ) {
                        $listLink = $this->getLanguage()->pipeList( [
                                $listLink,
-                               Linker::linkKnown(
+                               $linkRenderer->makeKnownLink(
                                        $titleObj,
                                        $this->msg( 'confirmaccount-showexp' 
)->escaped(),
                                        [],
diff --git a/frontend/specialpages/actions/RequestAccount_body.php 
b/frontend/specialpages/actions/RequestAccount_body.php
index f9388ac..ecd4a43 100755
--- a/frontend/specialpages/actions/RequestAccount_body.php
+++ b/frontend/specialpages/actions/RequestAccount_body.php
@@ -166,7 +166,8 @@
                                }
                                $formName = "wpArea-" . htmlspecialchars( 
str_replace( ' ', '_', $name ) );
                                if ( $conf['project'] != '' ) {
-                                       $pg = Linker::link( Title::newFromText( 
$conf['project'] ),
+                                       $linkRenderer = 
$this->getLinkRenderer();
+                                       $pg = $linkRenderer->makeLink( 
Title::newFromText( $conf['project'] ),
                                                $this->msg( 
'requestaccount-info' )->escaped(), [], [], "known" );
                                } else {
                                        $pg = '';
diff --git a/frontend/specialpages/actions/UserCredentials_body.php 
b/frontend/specialpages/actions/UserCredentials_body.php
index 62f9133..6967c1c 100644
--- a/frontend/specialpages/actions/UserCredentials_body.php
+++ b/frontend/specialpages/actions/UserCredentials_body.php
@@ -94,7 +94,8 @@
                $form .= '<legend>' . $this->msg( 'usercredentials-leg-user' 
)->escaped() . '</legend>';
                $form .= '<table style="padding:4px;">';
                $form .= "<tr><td>" . $this->msg( 'username' )->escaped() . 
"</td>";
-               $form .= "<td>" . Linker::link( $user->getUserPage(),
+               $linkRenderer = $this->getLinkRenderer();
+               $form .= "<td>" . $linkRenderer->makeLink( $user->getUserPage(),
                        htmlspecialchars( $user->getUserPage()->getText() ) ) . 
"</td></tr>\n";
 
                $econf = $row->acd_email_authenticated ? ' <strong>' . 
$this->msg(
@@ -128,7 +129,8 @@
                                }
                                $formName = "wpArea-" . htmlspecialchars( 
str_replace( ' ', '_', $name ) );
                                if ( $conf['project'] != '' ) {
-                                       $pg = Linker::linkKnown(
+                                       $linkRenderer = 
$this->getLinkRenderer();
+                                       $pg = $linkRenderer->makeKnownLink(
                                                Title::newFromText( $name ),
                                                $this->msg( 
'requestaccount-info' )->escaped()
                                        );
@@ -161,7 +163,8 @@
                if ( $this->hasItem( 'CV' ) || $this->hasItem( 'Notes' ) || 
$this->hasItem( 'Links' ) ) {
                        $form .= '<p>' . $this->msg( 'usercredentials-attach' 
)->escaped() . ' ';
                        if ( $row->acd_filename ) {
-                               $form .= Linker::linkKnown(
+                               $linkRenderer = $this->getLinkRenderer();
+                               $form .= $linkRenderer->makeKnownLink(
                                        $titleObj,
                                        htmlspecialchars( $row->acd_filename ),
                                        [],

-- 
To view, visit https://gerrit.wikimedia.org/r/305857
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I3d16e7b84094bc01e4faaefdce22c9586b314192
Gerrit-PatchSet: 12
Gerrit-Project: mediawiki/extensions/ConfirmAccount
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
Gerrit-Reviewer: 20after4 <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Hashar <[email protected]>
Gerrit-Reviewer: JanZerebecki <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Paladox <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to