X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecialpage%2FImageQueryPage.php;h=722251d3dd54b384e529c1157db28be04004a09c;hb=5a296a1113d1243962c6459281a0307dd3efb80f;hp=49aaffd004ef147e4d2ef1c3f35b454c649fcdcd;hpb=9b00306abe57ff7b9f92728c664e60a29eb1791b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specialpage/ImageQueryPage.php b/includes/specialpage/ImageQueryPage.php index 49aaffd004..722251d3dd 100644 --- a/includes/specialpage/ImageQueryPage.php +++ b/includes/specialpage/ImageQueryPage.php @@ -52,7 +52,7 @@ abstract class ImageQueryPage extends QueryPage { $i = 0; foreach ( $res as $row ) { $i++; - $namespace = isset( $row->namespace ) ? $row->namespace : NS_FILE; + $namespace = $row->namespace ?? NS_FILE; $title = Title::makeTitleSafe( $namespace, $row->title ); if ( $title instanceof Title && $title->getNamespace() == NS_FILE ) { $gallery->add( $title, $this->getCellHtml( $row ) ); @@ -68,6 +68,7 @@ abstract class ImageQueryPage extends QueryPage { // Gotta override this since it's abstract function formatResult( $skin, $result ) { + return false; } /**