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: I0e3fecd3110f0afbc8f87fd2f288fa4cf3f7eb0e
---
M specials/Push_Body.php
1 file changed, 4 insertions(+), 4 deletions(-)

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



diff --git a/specials/Push_Body.php b/specials/Push_Body.php
index ec3de1f..640856c 100644
--- a/specials/Push_Body.php
+++ b/specials/Push_Body.php
@@ -179,7 +179,7 @@
                                        Html::element( 'ul', array( 'id' => 
'pushResultList' ) )
                                )
                        ) . '<br />' .
-                       Html::element( 'a', array( 'href' => 
$this->getTitle()->getInternalURL() ), wfMsg( 'push-special-return' ) )
+                       Html::element( 'a', array( 'href' => 
$this->getPageTitle()->getInternalURL() ), wfMsg( 'push-special-return' ) )
                );
 
                $out->addInlineScript(
@@ -204,7 +204,7 @@
                $this->getOutput()->addWikiMsg( 'push-special-description' );
 
                $form = Xml::openElement( 'form', array( 'method' => 'post',
-                       'action' => $this->getTitle()->getLocalUrl( 
'action=submit' ) ) );
+                       'action' => $this->getPageTitle()->getLocalUrl( 
'action=submit' ) ) );
                $form .= Xml::inputLabel( wfMsg( 'export-addcattext' )    , 
'catname', 'catname', 40 ) . '&#160;';
                $form .= Xml::submitButton( wfMsg( 'export-addcat' ), array( 
'name' => 'addcat' ) ) . '<br />';
 
@@ -420,8 +420,8 @@
         *
         * @return Title
         */
-       public function getTitle( $subPage = false ) {
-               return version_compare( $GLOBALS['wgVersion'], '1.18', '>' ) ? 
parent::getTitle() : $GLOBALS['wgTitle'];
+       public function getPageTitle( $subPage = false ) {
+               return version_compare( $GLOBALS['wgVersion'], '1.18', '>' ) ? 
parent::getPageTitle() : $GLOBALS['wgTitle'];
        }
 
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I0e3fecd3110f0afbc8f87fd2f288fa4cf3f7eb0e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Push
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