X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUnusedimages.php;h=2cc1a7b0e86017080b4b3b65ceefca543af95fe2;hb=e3bd13db0c285f312e31bb1b7271af4628cca80c;hp=36ec09ec817891dfad6f6c3de8b3e8bfa3c12767;hpb=0525f22b8825c617fffa98f191ab07e8113da085;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialUnusedimages.php b/includes/specials/SpecialUnusedimages.php index 36ec09ec81..2cc1a7b0e8 100644 --- a/includes/specials/SpecialUnusedimages.php +++ b/includes/specials/SpecialUnusedimages.php @@ -44,30 +44,30 @@ class UnusedimagesPage extends ImageQueryPage { } function getQueryInfo() { - $retval = array( - 'tables' => array( 'image', 'imagelinks' ), - 'fields' => array( + $retval = [ + 'tables' => [ 'image', 'imagelinks' ], + 'fields' => [ 'namespace' => NS_FILE, 'title' => 'img_name', 'value' => 'img_timestamp', 'img_user', 'img_user_text', 'img_description' - ), - 'conds' => array( 'il_to IS NULL' ), - 'join_conds' => array( 'imagelinks' => array( 'LEFT JOIN', 'il_to = img_name' ) ) - ); + ], + 'conds' => [ 'il_to IS NULL' ], + 'join_conds' => [ 'imagelinks' => [ 'LEFT JOIN', 'il_to = img_name' ] ] + ]; if ( $this->getConfig()->get( 'CountCategorizedImagesAsUsed' ) ) { // Order is significant - $retval['tables'] = array( 'image', 'page', 'categorylinks', - 'imagelinks' ); + $retval['tables'] = [ 'image', 'page', 'categorylinks', + 'imagelinks' ]; $retval['conds']['page_namespace'] = NS_FILE; $retval['conds'][] = 'cl_from IS NULL'; $retval['conds'][] = 'img_name = page_title'; - $retval['join_conds']['categorylinks'] = array( - 'LEFT JOIN', 'cl_from = page_id' ); - $retval['join_conds']['imagelinks'] = array( - 'LEFT JOIN', 'il_to = page_title' ); + $retval['join_conds']['categorylinks'] = [ + 'LEFT JOIN', 'cl_from = page_id' ]; + $retval['join_conds']['imagelinks'] = [ + 'LEFT JOIN', 'il_to = page_title' ]; } return $retval;