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 df4ff96 commit 5388860
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions includes/Lister/Lister.php
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ protected function parseImageUrlWithPath( $article ) {
}
} elseif ( $pageImagesEnabled ) {
$pageImage = self::getPageImage( $article->mID ) ?: false;
if ( !$pageImage ) {
if ( !$pageImage ) {
return '';
}
$img = $repoGroup->findFile( Title::makeTitle( NS_FILE, $pageImage ) );
Expand Down Expand Up @@ -1314,7 +1314,13 @@ protected function joinSectionTagPieces( $piece, $start, $end ) {
public function getRowCount() {
return $this->rowCount;
}


/**
* Get the page image from the page_props table
*
* @param int $pageID
* @return mixed|false
*/
public function getPageImage( int $pageID ) {
$dbr = MediaWikiServices::getInstance()->getDBLoadBalancer()->getConnection( DB_REPLICA );
// In the future, a check could be made for page_image too, but page_image_free is the default, should do for now
Expand Down

0 comments on commit 5388860

Please sign in to comment.