From 7c2b259fbe3db006235d069f777425dd6b83c19f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sz=C5=91ts=20=C3=81kos?= Date: Fri, 4 Sep 2020 07:35:49 +0200 Subject: [PATCH] Replace deprecated SpecialPage::getTitle() to getPageTitle() --- SpecialWikilog.php | 2 +- SpecialWikilogSubscriptions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SpecialWikilog.php b/SpecialWikilog.php index d9873b2..6b62c7a 100644 --- a/SpecialWikilog.php +++ b/SpecialWikilog.php @@ -361,7 +361,7 @@ public function parseInlineParams( $parameters, FormOptions $opts ) { protected function getHeader( FormOptions $opts ) { global $wgScript; - $out = Html::hidden( 'title', $this->getTitle()->getPrefixedText() ); + $out = Html::hidden( 'title', $this->getPageTitle()->getPrefixedText() ); $out .= $this->getQueryForm( $opts ); diff --git a/SpecialWikilogSubscriptions.php b/SpecialWikilogSubscriptions.php index 45773a5..899f25c 100644 --- a/SpecialWikilogSubscriptions.php +++ b/SpecialWikilogSubscriptions.php @@ -324,7 +324,7 @@ public static function sendEmails( &$article, $text ) { $dbr = wfGetDB( DB_SLAVE ); - $title = $article->getTitle(); + $title = $article->getPageTitle(); $wi = Wikilog::getWikilogInfo( $title ); $args = array( $title->getSubpageText(),