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: Ife60b7d16cdb29291172ef3ef8925c3d23f0c3e5
---
M SpecialSudo.php
1 file changed, 6 insertions(+), 6 deletions(-)
Approvals:
Bartosz Dziewoński: Looks good to me, approved
jenkins-bot: Verified
diff --git a/SpecialSudo.php b/SpecialSudo.php
index aef0eee..a63d1a0 100644
--- a/SpecialSudo.php
+++ b/SpecialSudo.php
@@ -109,7 +109,7 @@
if( $wgRequest->wasPosted() ) {
unset( $_SESSION['wsSudoId'] );
$suUser->setCookies();
- $wgOut->redirect(
$this->getTitle()->getFullURL() );
+ $wgOut->redirect(
$this->getPageTitle()->getFullURL() );
return;
}
$this->setHeaders();
@@ -117,8 +117,8 @@
$wgOut->addHTML(
Xml::openElement( 'form', array( 'method' =>
'post',
- 'action' =>
$this->getTitle()->getFullURL( 'mode=unsudo' ) ) ) .
- Html::Hidden( 'title',
$this->getTitle()->getPrefixedText() )
+ 'action' =>
$this->getPageTitle()->getFullURL( 'mode=unsudo' ) ) ) .
+ Html::Hidden( 'title',
$this->getPageTitle()->getPrefixedText() )
);
$wgOut->addHTML(
wfMsgExt( 'sudo-unsudo', array( 'parse',
'replaceafter' ),
@@ -135,8 +135,8 @@
global $wgOut;
$wgOut->addHTML(
Xml::openElement( 'form', array( 'method' => 'post',
- 'action' => $this->getTitle()->getLocalURL() )
) .
- Html::Hidden( 'title',
$this->getTitle()->getPrefixedText() ) .
+ 'action' =>
$this->getPageTitle()->getLocalURL() ) ) .
+ Html::Hidden( 'title',
$this->getPageTitle()->getPrefixedText() ) .
Xml::openElement( 'fieldset' ) .
Xml::element( 'legend', array(), wfMsg( 'sudo-form' ) )
.
Xml::inputLabel( wfMsg( 'sudo-user' ), 'target',
'sudo-user', 20, $this->target ) . ' ' .
@@ -194,6 +194,6 @@
}
$u->setCookies();
- $wgOut->redirect( $this->getTitle()->getFullURL( 'mode=success'
) );
+ $wgOut->redirect( $this->getPageTitle()->getFullURL(
'mode=success' ) );
}
}
--
To view, visit https://gerrit.wikimedia.org/r/103993
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ife60b7d16cdb29291172ef3ef8925c3d23f0c3e5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Sudo
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>
Gerrit-Reviewer: Bartosz Dziewoński <[email protected]>
Gerrit-Reviewer: Daniel Friesen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits