Skip to content

Commit

Permalink
Fix PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
Universal-Omega authored May 24, 2024
1 parent 5388860 commit 6455440
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions includes/Lister/GalleryList.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ public function formatItem( Article $article, $pageText = null ) {

// If PageImages is loaded and we are not in the file namespace, attempt to assemble a gallery of PageImages
if ( $article->mNamespace !== NS_FILE && ExtensionRegistry::getInstance()->isLoaded( 'PageImages' ) ) {

$pageImage = $this->getPageImage( $article->mID ) ?: false;

if ( $pageImage ) {
// Successfully got a page image, wrapping it
$item = $this->getItemStart() . $pageImage . '| [[' . $item . ']]' . $this->itemEnd . 'link=' . $item;
Expand Down

0 comments on commit 6455440

Please sign in to comment.