From b1bb7a8ee1f0ce616f4af219e7fb22cc585a8d56 Mon Sep 17 00:00:00 2001 From: paladox Date: Sat, 23 Nov 2024 21:05:11 +0000 Subject: [PATCH] Fix getting title in replaceTagParameters there's no mTitle in the Article class as it's been moved to WikiPage I think? Anyways we call getPage() instead and also call getTitle(). --- includes/Lister/Lister.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Lister/Lister.php b/includes/Lister/Lister.php index 83ba04b..86c7b78 100644 --- a/includes/Lister/Lister.php +++ b/includes/Lister/Lister.php @@ -770,7 +770,7 @@ class Lister { $imageUrl = $this->parseImageUrlWithPath( $article ); - $pagename = $article->mTitle->getPrefixedText(); + $pagename = $article->getPage()->getTitle()->getPrefixedText(); if ( $this->getEscapeLinks() && ( $article->mNamespace == NS_CATEGORY || $article->mNamespace == NS_FILE ) ) { // links to categories or images need an additional ":" $pagename = ':' . $pagename; @@ -783,7 +783,7 @@ class Lister { $tag = str_replace( '%EXTERNALLINK%', $article->mExternalLink, $tag ); $tag = str_replace( '%EDITSUMMARY%', $article->mComment, $tag ); - $title = $article->mTitle->getText(); + $title = $article->getPage()->getTitle()->getText(); $replaceInTitle = $this->getParameters()->getParameter( 'replaceintitle' ); if ( is_array( $replaceInTitle ) && count( $replaceInTitle ) === 2 ) {