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: Ibc425d8d80363434a0366f219c3f6e3c4cec89e7
---
M SpecialGlobalBlockStatus.php
M SpecialRemoveGlobalBlock.php
2 files changed, 3 insertions(+), 3 deletions(-)
Approvals:
Alex Monk: Looks good to me, approved
jenkins-bot: Verified
diff --git a/SpecialGlobalBlockStatus.php b/SpecialGlobalBlockStatus.php
index 5b5150e..6728675 100644
--- a/SpecialGlobalBlockStatus.php
+++ b/SpecialGlobalBlockStatus.php
@@ -154,9 +154,9 @@
$form = '';
$form .= Xml::openElement( 'fieldset' ) . Xml::element(
'legend', null, $this->msg( 'globalblocking-whitelist-legend' )->text() );
- $form .= Xml::openElement( 'form', array( 'method' => 'post',
'action' => $this->getTitle()->getFullURL(), 'name' => 'globalblock-whitelist'
) );
+ $form .= Xml::openElement( 'form', array( 'method' => 'post',
'action' => $this->getPageTitle()->getFullURL(), 'name' =>
'globalblock-whitelist' ) );
- $form .= Html::hidden( 'title',
$this->getTitle()->getPrefixedText() );
+ $form .= Html::hidden( 'title',
$this->getPageTitle()->getPrefixedText() );
$form .= Html::hidden( 'action', 'whitelist' );
$fields = array();
diff --git a/SpecialRemoveGlobalBlock.php b/SpecialRemoveGlobalBlock.php
index 9635fce..82b070f 100644
--- a/SpecialRemoveGlobalBlock.php
+++ b/SpecialRemoveGlobalBlock.php
@@ -112,7 +112,7 @@
$form .= Xml::openElement( 'fieldset' ) . Xml::element(
'legend', null, $this->msg( 'globalblocking-unblock-legend' )->text() );
$form .= Xml::openElement( 'form', array( 'method' => 'post',
'action' => $wgScript, 'name' => 'globalblock-unblock' ) );
- $form .= Html::hidden( 'title',
$this->getTitle()->getPrefixedText() );
+ $form .= Html::hidden( 'title',
$this->getPageTitle()->getPrefixedText() );
$form .= Html::hidden( 'action', 'unblock' );
$fields = array();
--
To view, visit https://gerrit.wikimedia.org/r/103939
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ibc425d8d80363434a0366f219c3f6e3c4cec89e7
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/GlobalBlocking
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Alex Monk <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits