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: Icbfe2f2b11ceee742cecac6da25da6da64ba48c2
---
M SpecialPremoderation.php
M SpecialPremoderationWhiteList.php
2 files changed, 4 insertions(+), 4 deletions(-)

Approvals:
  Bartosz Dziewoński: Verified; Looks good to me, approved



diff --git a/SpecialPremoderation.php b/SpecialPremoderation.php
index 9861197..a77b8a6 100644
--- a/SpecialPremoderation.php
+++ b/SpecialPremoderation.php
@@ -96,7 +96,7 @@
                }
                
                if( isset( $offset ) ) {
-                       $wgOut->addHtml( Linker::link( $this->getTitle( 
"list/offset/$offset" ),
+                       $wgOut->addHtml( Linker::link( $this->getPageTitle( 
"list/offset/$offset" ),
                                wfMsgHtml( 'premoderation-next' ) ) );
                }
                
@@ -148,7 +148,7 @@
                        '<td>' . Linker::link( Title::newFromText( 
$row['pmq_page_title'], $row['pmq_page_ns'] ) ) .
                        '</td><td>' . ( $row['pmq_minor'] == 0 ? '' : ' ' . 
wfMsg( 'minoreditletter' ) ) . '</td>' .
                        '<td>' . $row['pmq_summary'] . '</td><td>' .
-                       Linker::link( $this->getTitle( "status/id/" . 
$row['pmq_id'] ),
+                       Linker::link( $this->getPageTitle( "status/id/" . 
$row['pmq_id'] ),
                        wfMessage( 'premoderation-status-' . $row['pmq_status'] 
. 
                        ( $row['pmq_updated_user_text'] ? '-changed' : '-added' 
),
                        array( $row['pmq_updated_user_text'] ) )->escaped() ) . 
'</td></tr>';
@@ -427,7 +427,7 @@
        protected function addLogEntry( $type, $params = array(), $visible = 
'private' ) {
                $log = new LogPage( 'prem-' . $visible );
                
-               $self = $this->getTitle();
+               $self = $this->getPageTitle();
                $ok = $log->addEntry( $type, $self, $this->mSummary, $params );
                
                return $ok;
diff --git a/SpecialPremoderationWhiteList.php 
b/SpecialPremoderationWhiteList.php
index 980a6df..52487cd 100644
--- a/SpecialPremoderationWhiteList.php
+++ b/SpecialPremoderationWhiteList.php
@@ -118,7 +118,7 @@
        protected function addLogEntry( $action, $params ) {
                $log = new LogPage( 'prem-whitelist' );
                
-               $self = $this->getTitle();
+               $self = $this->getPageTitle();
                $summary = isset( $this->mRequest['summary'] ) ? strval( 
$this->mRequest['summary'] ) : '';
                $log->addEntry( $action, $self, $summary, $params );    
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/103971
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Icbfe2f2b11ceee742cecac6da25da6da64ba48c2
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Premoderation
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

Reply via email to