Paladox has uploaded a new change for review.

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

Change subject: Replace deprecated hook Linker::makeKnownLinkObj with 
Linker::linkKnown
......................................................................

Replace deprecated hook Linker::makeKnownLinkObj with Linker::linkKnown

Bug: T121145
Change-Id: I874edf03e18a0429e83e54f300377136703132dd
---
M frontend/specialpages/actions/ConfirmAccount_body.php
M frontend/specialpages/actions/UserCredentials_body.php
2 files changed, 13 insertions(+), 13 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ConfirmAccount 
refs/changes/19/258219/1

diff --git a/frontend/specialpages/actions/ConfirmAccount_body.php 
b/frontend/specialpages/actions/ConfirmAccount_body.php
index 3e0027e..f2d8ac4 100644
--- a/frontend/specialpages/actions/ConfirmAccount_body.php
+++ b/frontend/specialpages/actions/ConfirmAccount_body.php
@@ -126,7 +126,7 @@
                if ( $this->acrID || !$this->showHeld ) {
                        $listLink = $this->getLanguage()->pipeList( array(
                                $listLink,
-                               Linker::makeKnownLinkObj(
+                               Linker::linkKnown(
                                        $titleObj,
                                        $this->msg( 'confirmaccount-showheld' 
)->escaped(),
                                        'wpShowHeld=1'
@@ -141,7 +141,7 @@
                if ( $this->acrID || !$this->showRejects ) {
                        $listLink = $this->getLanguage()->pipeList( array(
                                $listLink,
-                               Linker::makeKnownLinkObj( $titleObj,
+                               Linker::linkKnown( $titleObj,
                                        $this->msg( 'confirmaccount-showrej' 
)->escaped(),
                                        'wpShowRejects=1'
                                )
@@ -155,7 +155,7 @@
                if ( $this->acrID || !$this->showStale ) {
                        $listLink = $this->getLanguage()->pipeList( array(
                                $listLink,
-                               Linker::makeKnownLinkObj( $titleObj,
+                               Linker::linkKnown( $titleObj,
                                        $this->msg( 'confirmaccount-showexp' 
)->escaped(),
                                        'wpShowStale=1'
                                )
@@ -169,7 +169,7 @@
 
                # Say what queue we are in...
                if ( $this->queueType != -1 ) {
-                       $viewall = Linker::makeKnownLinkObj(
+                       $viewall = Linker::linkKnown(
                                $this->getPageTitle(), $this->msg( 
'confirmaccount-all' )->escaped() );
 
                        // Give grep a chance to find the usages: 
confirmaccount-type-0, confirmaccount-type-1
@@ -195,21 +195,21 @@
                        $counts = ConfirmAccount::getOpenRequestCount( $i );
 
                        $open = '<b>';
-                       $open .= Linker::makeKnownLinkObj(
+                       $open .= Linker::linkKnown(
                                $titleObj,
                                $this->msg( 'confirmaccount-q-open' 
)->escaped(),
                                'wpShowHeld=0'
                        );
                        $open .= '</b> [' . $counts['open'] . ']';
 
-                       $held = Linker::makeKnownLinkObj(
+                       $held = Linker::linkKnown(
                                $titleObj,
                                $this->msg( 'confirmaccount-q-held' 
)->escaped(),
                                'wpShowHeld=1'
                        );
                        $held .= ' [' . $counts['held'] . ']';
 
-                       $rejects = Linker::makeKnownLinkObj(
+                       $rejects = Linker::linkKnown(
                                $titleObj,
                                $this->msg( 'confirmaccount-q-rej' )->escaped(),
                                'wpShowRejects=1'
@@ -217,7 +217,7 @@
                        $rejects .= ' [' . $counts['rejected'] . ']';
 
                        $stale = '<i>';
-                       $stale .= Linker::makeKnownLinkObj(
+                       $stale .= Linker::linkKnown(
                                $titleObj,
                                $this->msg( 'confirmaccount-q-stale' 
)->escaped(),
                                'wpShowStale=1'
@@ -385,7 +385,7 @@
                        if ( $this->hasItem( 'CV' ) ) {
                                $form .= '<p>' . $this->msg( 
'confirmaccount-attach' )->escaped() . ' ';
                                if ( $accountReq->getFileName() !== null ) {
-                                       $form .= Linker::makeKnownLinkObj( 
$titleObj,
+                                       $form .= Linker::linkKnown( $titleObj,
                                                htmlspecialchars( 
$accountReq->getFileName() ),
                                                'file=' . 
$accountReq->getFileStorageKey() );
                                } else {
@@ -408,7 +408,7 @@
 
                if ( $reqUser->isAllowed( 'requestips' ) ) {
                        $blokip = SpecialPage::getTitleFor( 'Block' );
-                       $link = Linker::makeKnownLinkObj(
+                       $link = Linker::linkKnown(
                                $blokip,
                                $this->msg( 'confirmaccount-blockip' 
)->escaped(),
                                'ip=' . $accountReq->getIP() . 
'&wpCreateAccount=1'
@@ -712,12 +712,12 @@
                global $wgMemc;
 
                if ( $this->showRejects || $this->showStale ) {
-                       $link = Linker::makeKnownLinkObj(
+                       $link = Linker::linkKnown(
                                $this->getFullTitle(),
                                $this->msg( 'confirmaccount-review' 
)->escaped(),
                                'acrid=' . (int)$row->acr_id . 
'&wpShowRejects=1' );
                } else {
-                       $link = Linker::makeKnownLinkObj(
+                       $link = Linker::linkKnown(
                                $this->getFullTitle(),
                                $this->msg( 'confirmaccount-review' 
)->escaped(),
                                'acrid=' . (int)$row->acr_id );
diff --git a/frontend/specialpages/actions/UserCredentials_body.php 
b/frontend/specialpages/actions/UserCredentials_body.php
index 4685729..f671633 100644
--- a/frontend/specialpages/actions/UserCredentials_body.php
+++ b/frontend/specialpages/actions/UserCredentials_body.php
@@ -161,7 +161,7 @@
                if ( $this->hasItem( 'CV' ) || $this->hasItem( 'Notes' ) || 
$this->hasItem( 'Links' ) ) {
                        $form .= '<p>' . $this->msg( 'usercredentials-attach' 
)->escaped() . ' ';
                        if ( $row->acd_filename ) {
-                               $form .= Linker::makeKnownLinkObj( $titleObj, 
htmlspecialchars( $row->acd_filename ),
+                               $form .= Linker::linkKnown( $titleObj, 
htmlspecialchars( $row->acd_filename ),
                                        'file=' . $row->acd_storage_key );
                        } else {
                                $form .= $this->msg( 'confirmaccount-none-p' 
)->escaped();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I874edf03e18a0429e83e54f300377136703132dd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ConfirmAccount
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>

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

Reply via email to