Bartosz Dziewoński has submitted this change and it was merged.

Change subject: Replace usage of SpecialPage::getTitle with getPageTitle
......................................................................


Replace usage of SpecialPage::getTitle with getPageTitle

Was deprecated in 1.23, see Icdcf5d5295ef5e7f08b1d403e0c123f78738fd40

Change-Id: Ie32a41cb0d3d3961ab47728612bd5f5166b47334
---
M SpecialSimilarFans.php
M SpecialSportsTeamsManager.php
M SpecialTopNetworks.php
M SpecialViewFans.php
4 files changed, 17 insertions(+), 17 deletions(-)

Approvals:
  Bartosz Dziewoński: Verified; Looks good to me, approved



diff --git a/SpecialSimilarFans.php b/SpecialSimilarFans.php
index 68a0ebd..f87dc3f 100644
--- a/SpecialSimilarFans.php
+++ b/SpecialSimilarFans.php
@@ -153,7 +153,7 @@
                        $output .= '<div class="page-nav">';
                        if ( $page > 1 ) {
                                $output .= Linker::link(
-                                       $this->getTitle(),
+                                       $this->getPageTitle(),
                                        $this->msg( 'sportsteams-prev' 
)->plain(),
                                        array(),
                                        array( 'page' => ( $page - 1 ) )
@@ -172,7 +172,7 @@
                                        $output .= ( $i . ' ');
                                } else {
                                        $output .= Linker::link(
-                                               $this->getTitle(),
+                                               $this->getPageTitle(),
                                                $i,
                                                array(),
                                                array( 'page' => $i )
@@ -182,7 +182,7 @@
 
                        if ( ( $total - ( $per_page * $page ) ) > 0 ) {
                                $output .= $this->msg( 'word-separator' 
)->plain() . Linker::link(
-                                       $this->getTitle(),
+                                       $this->getPageTitle(),
                                        $this->msg( 'sportsteams-next' 
)->plain(),
                                        array(),
                                        array( 'page' => ( $page + 1 ) )
diff --git a/SpecialSportsTeamsManager.php b/SpecialSportsTeamsManager.php
index c421e01..2e93548 100644
--- a/SpecialSportsTeamsManager.php
+++ b/SpecialSportsTeamsManager.php
@@ -135,9 +135,9 @@
                                } else {
                                        $out->addHTML(
                                                '<div><b><a href="' .
-                                               
$this->getTitle()->escapeFullURL() . '">' .
+                                               
$this->getPageTitle()->escapeFullURL() . '">' .
                                                $this->msg( 
'sportsteams-team-manager-view-sports' )->text() .
-                                               '</a></b> | <b><a href="' . 
$this->getTitle()->escapeFullURL(
+                                               '</a></b> | <b><a href="' . 
$this->getPageTitle()->escapeFullURL(
                                                        array( 'sport_id' => 
$sport_id, 'method' => 'edit' )
                                                ) . '">' .
                                                $this->msg( 
'sportsteams-team-manager-add-new-team' )->text() . '</a></b></div><p>'
@@ -228,7 +228,7 @@
                if ( $sports ) {
                        foreach ( $sports as $sport ) {
                                $editLink = $this->msg( 'word-separator' 
)->plain() . '<a href="' .
-                                       $this->getTitle()->escapeFullURL( array(
+                                       $this->getPageTitle()->escapeFullURL( 
array(
                                                'method' => 'editsport',
                                                'sport_id' => $sport['id']
                                        ) ) .
@@ -236,7 +236,7 @@
                                        $this->msg( 
'sportsteams-team-manager-edit-this-sport' )->plain() .
                                        '</a>';
                                $output .= '<div class="Item">
-                               <a href="' . $this->getTitle()->escapeFullURL( 
"sport_id={$sport['id']}" ) . "\">{$sport['name']}</a>{$editLink}
+                               <a href="' . 
$this->getPageTitle()->escapeFullURL( "sport_id={$sport['id']}" ) . 
"\">{$sport['name']}</a>{$editLink}
                        </div>\n";
                        }
                } else {
@@ -261,7 +261,7 @@
                foreach ( $teams as $team ) {
                        $output .= '<div class="Item">' .
                                Linker::link(
-                                       $this->getTitle(),
+                                       $this->getPageTitle(),
                                        $team['name'],
                                        array(),
                                        array(
@@ -281,7 +281,7 @@
 
                $request = $this->getRequest();
 
-               $form = '<div><b><a href="' . $this->getTitle()->escapeFullURL( 
'sport_id=' . $request->getInt( 'sport_id' ) ) . '">' .
+               $form = '<div><b><a href="' . 
$this->getPageTitle()->escapeFullURL( 'sport_id=' . $request->getInt( 
'sport_id' ) ) . '">' .
                        $this->msg( 'sportsteams-team-manager-view-teams' 
)->text() . '</a></b></div><p>';
 
                if ( $id ) {
diff --git a/SpecialTopNetworks.php b/SpecialTopNetworks.php
index 2c94762..80d9b65 100644
--- a/SpecialTopNetworks.php
+++ b/SpecialTopNetworks.php
@@ -127,7 +127,7 @@
                } elseif ( !( $sport ) && !( $type ) && ( $direction == 'best' 
) ) {
                        $output .= '<p><b>' . $this->msg( 
'sportsteams-top-network-teams' )->text() . '</b></p>';
                } else {
-                       $output .= '<p><a href="' . 
$this->getTitle()->escapeFullURL(
+                       $output .= '<p><a href="' . 
$this->getPageTitle()->escapeFullURL(
                                array( 'direction' => 'best' )
                        ) . '">' . $this->msg( 'sportsteams-top-network-teams' 
)->text() . '</a></p>';
                }
@@ -135,7 +135,7 @@
                if ( !( $sport ) && ( $type == 'sport' ) && ( $direction == 
'best' ) ) {
                        $output .= '<p><b>' . $this->msg( 
'sportsteams-top-network-sports' )->text() . '</b></p>';
                } else {
-                       $output .= '<p><a href="' . 
$this->getTitle()->escapeFullURL(
+                       $output .= '<p><a href="' . 
$this->getPageTitle()->escapeFullURL(
                                array( 'type' => 'sport', 'direction' => 'best' 
)
                        ) . '">' . $this->msg( 'sportsteams-top-network-sports' 
)->text() . '</a></p>';
                }
@@ -146,7 +146,7 @@
                if ( !( $sport ) && !( $type ) && ( $direction == 'worst' ) ) {
                        $output .= '<p><b>' . $this->msg( 
'sportsteams-top-network-teams' )->text() . '</b></p>';
                } else {
-                       $output .= '<p><a href="' . 
$this->getTitle()->escapeFullURL(
+                       $output .= '<p><a href="' . 
$this->getPageTitle()->escapeFullURL(
                                array( 'direction' => 'worst' )
                        ) . '">' . $this->msg( 'sportsteams-top-network-teams' 
)->text() . '</a></p>';
                }
@@ -154,7 +154,7 @@
                if ( !( $sport ) && ( $type == 'sport' ) && ( $direction == 
'worst' ) ) {
                        $output .= '<p><b>' . $this->msg( 
'sportsteams-top-network-sports' ) . '</b></p>';
                } else {
-                       $output .= '<p><a href="' . 
$this->getTitle()->escapeFullURL(
+                       $output .= '<p><a href="' . 
$this->getPageTitle()->escapeFullURL(
                                array( 'type' => 'sport', 'direction' => 
'worst' )
                        ) . '">' . $this->msg( 'sportsteams-top-network-sports' 
)->text() . "</a></p>";
                }
@@ -177,7 +177,7 @@
                                                $sport_name )->text()
                                );
                        } else {
-                               $output .= '<p><a href="' . 
$this->getTitle()->escapeFullURL(
+                               $output .= '<p><a href="' . 
$this->getPageTitle()->escapeFullURL(
                                        array( 'direction' => $direction, 
'sport' => $sport_id )
                                ) . '">' . $sport_name . '</a></p>';
                        }
diff --git a/SpecialViewFans.php b/SpecialViewFans.php
index 3be928e..e1c34f6 100644
--- a/SpecialViewFans.php
+++ b/SpecialViewFans.php
@@ -199,7 +199,7 @@
                        $output .= '<div class="page-nav">';
                        if ( $page > 1 ) {
                                $output .= Linker::link(
-                                       $this->getTitle(),
+                                       $this->getPageTitle(),
                                        $this->msg( 'sportsteams-prev' 
)->plain(),
                                        array(),
                                        array(
@@ -222,7 +222,7 @@
                                    $output .= ( $i . ' ' );
                                } else {
                                    $output .= Linker::link(
-                                               $this->getTitle(),
+                                               $this->getPageTitle(),
                                                $i,
                                                array(),
                                                array(
@@ -236,7 +236,7 @@
 
                        if ( ( $total - ( $per_page * $page ) ) > 0 ) {
                                $output .= $this->msg( 'word-separator' 
)->plain() . Linker::link(
-                                       $this->getTitle(),
+                                       $this->getPageTitle(),
                                        $this->msg( 'sportsteams-next' 
)->plain(),
                                        array(),
                                        array(

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie32a41cb0d3d3961ab47728612bd5f5166b47334
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SportsTeams
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Bartosz Dziewoński <[email protected]>

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

Reply via email to