mirror of
https://github.com/Universal-Omega/DynamicPageList3
synced 2024-11-28 01:50:34 +00:00
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().
This commit is contained in:
parent
26b8978260
commit
b1bb7a8ee1
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue