Skip to content

Commit

Permalink
Try
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored Feb 9, 2025
1 parent e9d9a9a commit 6beec21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Lister/Lister.php
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ protected function replaceTagParameters( $tag, Article $article ) {

$pageProps = MediaWikiServices::getInstance()->getPageProps();
$values = $pageProps->getProperties( $article->mTitle, 'displaytitle' );
$id = $article->mTitle->getArticleID();
$id = $article->mID;

Check warning

Code scanning / Phpmd (reported by Codacy)

Detects when a field, local, or parameter has a very short name. Warning

Avoid variables with short names like $id. Configured minimum length is 3.

var_dump( "Page ID:", $id );
var_dump( "Retrieved displaytitle values:", $values );
Expand Down

0 comments on commit 6beec21

Please sign in to comment.