jenkins-bot has submitted this change and it was merged. Change subject: Hygiene: Replace usage of SpecialPage::getTitle with getPageTitle ......................................................................
Hygiene: Replace usage of SpecialPage::getTitle with getPageTitle Was deprecated in 1.23, see Icdcf5d5295ef5e7f08b1d403e0c123f78738fd40 Change-Id: I3f515dd82c6a73edc1425999625c22918db1ae5f --- M includes/specials/SpecialMobileOptions.php M includes/specials/SpecialMobileWatchlist.php M includes/specials/SpecialUploads.php 3 files changed, 5 insertions(+), 5 deletions(-) Approvals: Jdlrobson: Looks good to me, approved jenkins-bot: Verified diff --git a/includes/specials/SpecialMobileOptions.php b/includes/specials/SpecialMobileOptions.php index 4220c10..291ebe1 100644 --- a/includes/specials/SpecialMobileOptions.php +++ b/includes/specials/SpecialMobileOptions.php @@ -72,7 +72,7 @@ $saveSettings = $this->msg( 'mobile-frontend-save-settings' )->escaped(); $onoff = '<span class="mw-mf-settings-on">' . $this->msg( 'mobile-frontend-on' )->escaped() . '</span><span class="mw-mf-settings-off">' . $this->msg( 'mobile-frontend-off' )->escaped() .'</span>'; - $action = $this->getTitle()->getLocalURL(); + $action = $this->getPageTitle()->getLocalURL(); $html = Html::openElement( 'form', array( 'class' => 'mw-mf-settings', 'method' => 'POST', 'action' => $action ) ); @@ -219,7 +219,7 @@ if ( $returnToTitle ) { $url = $returnToTitle->getFullURL(); } else { - $url = $this->getTitle()->getFullURL( 'success' ); + $url = $this->getPageTitle()->getFullURL( 'success' ); } $context->getOutput()->redirect( MobileContext::singleton()->getMobileUrl( $url ) ); } diff --git a/includes/specials/SpecialMobileWatchlist.php b/includes/specials/SpecialMobileWatchlist.php index 5edd957..64a6693 100644 --- a/includes/specials/SpecialMobileWatchlist.php +++ b/includes/specials/SpecialMobileWatchlist.php @@ -25,7 +25,7 @@ SpecialPage::getTitleFor( 'Userlogin' ), $this->msg( 'loginreqlink' )->escaped(), array(), - array( 'returnto' => $this->getTitle()->getPrefixedText() ) + array( 'returnto' => $this->getPageTitle()->getPrefixedText() ) ); $out->addHTML( Html::openElement( 'div', array( 'class' => 'alert warning' ) ) . @@ -190,7 +190,7 @@ $itemAttrs['class'] = 'selected'; } $linkAttrs = array( - 'href' => $this->getTitle()->getLocalUrl( + 'href' => $this->getPageTitle()->getLocalUrl( array( 'filter' => $filter, 'watchlistview' => 'feed', diff --git a/includes/specials/SpecialUploads.php b/includes/specials/SpecialUploads.php index afa1f8d..dcb3b61 100644 --- a/includes/specials/SpecialUploads.php +++ b/includes/specials/SpecialUploads.php @@ -18,7 +18,7 @@ // TODO: what if the user cannot upload to the destination wiki in $wgMFPhotoUploadEndpoint? if( $user->isAnon() ) { - $returnTo = $this->getTitle()->getPrefixedText(); + $returnTo = $this->getPageTitle()->getPrefixedText(); $loginLink = Linker::link( SpecialPage::getTitleFor( 'UserLogin' ), wfMessage( 'mobile-frontend-user-account' )->plain(), -- To view, visit https://gerrit.wikimedia.org/r/103953 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I3f515dd82c6a73edc1425999625c22918db1ae5f Gerrit-PatchSet: 2 Gerrit-Project: mediawiki/extensions/MobileFrontend Gerrit-Branch: master Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: JGonera <jgon...@wikimedia.org> Gerrit-Reviewer: Jdlrobson <jrob...@wikimedia.org> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits