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: I1ec3402fa7aafee0be0d8754f1ba4dd28e8617fa
---
M MiniAjaxUpload.php
M SpecialAdminPoll.php
M SpecialViewPoll.php
3 files changed, 3 insertions(+), 3 deletions(-)
Approvals:
Bartosz Dziewoński: Verified; Looks good to me, approved
diff --git a/MiniAjaxUpload.php b/MiniAjaxUpload.php
index d11db6d..53d5661 100644
--- a/MiniAjaxUpload.php
+++ b/MiniAjaxUpload.php
@@ -152,7 +152,7 @@
'destwarningack' => (bool)$this->mDestWarningAck,
'destfile' => $this->mDesiredDestName,
) );
- $form->setTitle( $this->getTitle() );
+ $form->setTitle( $this->getPageTitle() );
# Check the token, but only if necessary
if( !$this->mTokenOk && !$this->mCancelUpload
diff --git a/SpecialAdminPoll.php b/SpecialAdminPoll.php
index 0d58f42..c79cd6d 100644
--- a/SpecialAdminPoll.php
+++ b/SpecialAdminPoll.php
@@ -75,7 +75,7 @@
foreach( $nav as $status => $title ) {
$output .= '<p>';
if( $current_status != $status ) {
- $output .= '<a href="' .
$this->getTitle()->escapeFullURL( "status={$status}" ) . "\">{$title}</a>";
+ $output .= '<a href="' .
$this->getPageTitle()->escapeFullURL( "status={$status}" ) . "\">{$title}</a>";
} else {
$output .= "<b>{$title}</b>";
}
diff --git a/SpecialViewPoll.php b/SpecialViewPoll.php
index 1591a58..b7b6d57 100644
--- a/SpecialViewPoll.php
+++ b/SpecialViewPoll.php
@@ -21,7 +21,7 @@
public function execute( $par ) {
$out = $this->getOutput();
$request = $this->getRequest();
- $thisTitle = $this->getTitle();
+ $thisTitle = $this->getPageTitle();
// Add CSS & JS
$out->addModules( 'ext.pollNY' );
--
To view, visit https://gerrit.wikimedia.org/r/103968
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1ec3402fa7aafee0be0d8754f1ba4dd28e8617fa
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PollNY
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