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 6beec21 commit 2061c4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/Lister/Lister.php
Original file line number Diff line number Diff line change
Expand Up @@ -805,10 +805,10 @@ protected function replaceTagParameters( $tag, Article $article ) {
} */

$pageProps = MediaWikiServices::getInstance()->getPageProps();
$values = $pageProps->getProperties( $article->mTitle, 'displaytitle' );
$values = $pageProps->getProperties( $article->mTitle->createFragmentTarget( '' ), 'displaytitle' );
$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( "Page ID + Title:", "$id: $title" );
var_dump( "Retrieved displaytitle values:", $values );

if ( isset( $values[$id] ) ) {
Expand Down

0 comments on commit 2061c4b

Please sign in to comment.