jenkins-bot 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: I67701856297927b94aa443a78376bae7d7860def --- M Views/AbuseFilterView.php M special/SpecialAbuseLog.php 2 files changed, 7 insertions(+), 7 deletions(-) Approvals: Hoo man: Looks good to me, approved jenkins-bot: Verified diff --git a/Views/AbuseFilterView.php b/Views/AbuseFilterView.php index 56200c2..8a0483d 100644 --- a/Views/AbuseFilterView.php +++ b/Views/AbuseFilterView.php @@ -18,7 +18,7 @@ * @return Title */ function getTitle( $subpage = '' ) { - return $this->mPage->getTitle( $subpage ); + return $this->mPage->getPageTitle( $subpage ); } abstract function show(); diff --git a/special/SpecialAbuseLog.php b/special/SpecialAbuseLog.php index aa4ecc8..bde06a1 100644 --- a/special/SpecialAbuseLog.php +++ b/special/SpecialAbuseLog.php @@ -37,7 +37,7 @@ $out->addModuleStyles( 'ext.abuseFilter' ); // Are we allowed? - $errors = $this->getTitle()->getUserPermissionsErrors( + $errors = $this->getPageTitle()->getUserPermissionsErrors( 'abusefilter-log', $this->getUser(), true, array( 'ns-specialprotected' ) ); if ( count( $errors ) ) { // Go away. @@ -116,7 +116,7 @@ } $output .= Xml::tags( 'form', - array( 'method' => 'get', 'action' => $this->getTitle()->getLocalURL() ), + array( 'method' => 'get', 'action' => $this->getPageTitle()->getLocalURL() ), Xml::buildForm( $fields, 'abusefilter-log-search-submit' ) ); $output = Xml::tags( 'fieldset', null, $output ); @@ -167,7 +167,7 @@ ); $form = new HTMLForm( $formInfo, $this->getContext() ); - $form->setTitle( $this->getTitle() ); + $form->setTitle( $this->getPageTitle() ); $form->setWrapperLegend( $this->msg( 'abusefilter-log-hide-legend' )->text() ); $form->addHiddenField( 'hide', $id ); $form->setSubmitCallback( array( $this, 'saveHideForm' ) ); @@ -193,7 +193,7 @@ $logPage = new LogPage( 'suppress' ); $action = $fields['hidden'] ? 'hide-afl' : 'unhide-afl'; - $logPage->addEntry( $action, $this->getTitle( $logid ), $fields['reason'] ); + $logPage->addEntry( $action, $this->getPageTitle( $logid ), $fields['reason'] ); $this->getOutput()->redirect( SpecialPage::getTitleFor( 'AbuseLog' )->getFullURL() ); @@ -476,7 +476,7 @@ if ( self::canSeeDetails( $row->afl_filter, $filter_hidden ) ) { $examineTitle = SpecialPage::getTitleFor( 'AbuseFilter', 'examine/log/' . $row->afl_id ); $detailsLink = Linker::linkKnown( - $this->getTitle($row->afl_id), + $this->getPageTitle($row->afl_id), $this->msg( 'abusefilter-log-detailslink' )->escaped() ); $examineLink = Linker::link( @@ -493,7 +493,7 @@ if ( $user->isAllowed( 'abusefilter-hide-log' ) ) { $hideLink = Linker::link( - $this->getTitle(), + $this->getPageTitle(), $this->msg( 'abusefilter-log-hidelink' )->text(), array(), array( 'hide' => $row->afl_id ) -- To view, visit https://gerrit.wikimedia.org/r/103903 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I67701856297927b94aa443a78376bae7d7860def Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/AbuseFilter Gerrit-Branch: master Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: Hoo man <h...@online.de> Gerrit-Reviewer: jenkins-bot _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits