Legoktm has uploaded a new change for review.

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


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: Ia63a87decd45d44305ba96da40f14e8a344365a0
---
M SpecialIncubatorFirstSteps.php
M SpecialViewUserLang.php
2 files changed, 3 insertions(+), 3 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikimediaIncubator 
refs/changes/06/104006/1

diff --git a/SpecialIncubatorFirstSteps.php b/SpecialIncubatorFirstSteps.php
index 370a713..ee3eeb1 100644
--- a/SpecialIncubatorFirstSteps.php
+++ b/SpecialIncubatorFirstSteps.php
@@ -102,7 +102,7 @@
                        }
                        $linkParams = array( 'uselang' => $code,
                                'testwiki' => $this->getRequest()->getVal( 
'testwiki' ) );
-                       $showLanguages[] = Linker::linkKnown( $this->getTitle(),
+                       $showLanguages[] = Linker::linkKnown( 
$this->getPageTitle(),
                                $names[$code], array(), $linkParams );
                }
 
@@ -130,7 +130,7 @@
 
                # Login / create account links
                $link = SpecialPage::getTitleFor( 'Userlogin' );
-               $query = array( 'returnto' => $this->getTitle(),
+               $query = array( 'returnto' => $this->getPageTitle(),
                        'uselang' => $this->getRequest()->getVal( 'uselang' ) );
                $urlTestWiki = WikimediaIncubator::getUrlParam();
                if ( $urlTestWiki ) {
diff --git a/SpecialViewUserLang.php b/SpecialViewUserLang.php
index c551f99..e2f28ea 100644
--- a/SpecialViewUserLang.php
+++ b/SpecialViewUserLang.php
@@ -52,7 +52,7 @@
                $this->getOutput()->addHTML(
                        Xml::fieldset( wfMessage( 'wminc-viewuserlang' 
)->plain() ) .
                        Xml::openElement( 'form', array( 'method' => 'get', 
'action' => $wgScript ) ) .
-                       Html::hidden( 'title', 
$this->getTitle()->getPrefixedText() ) .
+                       Html::hidden( 'title', 
$this->getPageTitle()->getPrefixedText() ) .
                        "<p>" .
                                Xml::inputLabel( wfMessage( 
'wminc-viewuserlang-user' )->text(), 'target', 'viewuserlang-username', 40, 
$target ) .
                                ' ' .

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia63a87decd45d44305ba96da40f14e8a344365a0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikimediaIncubator
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

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

Reply via email to