X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fspecials%2FSpecialUnusedimages.php;h=743c5878f1a9b106dd1092bf20179476d7923c66;hb=1622e08767cca1f6d5a7f2a4d3afda687df29521;hp=cdab557ee326c1679bc598ed996811346d9d44c5;hpb=40e93447fc43b163b60f077f9bf9c991bb302307;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialUnusedimages.php b/includes/specials/SpecialUnusedimages.php index cdab557ee3..743c5878f1 100644 --- a/includes/specials/SpecialUnusedimages.php +++ b/includes/specials/SpecialUnusedimages.php @@ -45,30 +45,32 @@ class UnusedimagesPage extends ImageQueryPage { function getQueryInfo() { global $wgCountCategorizedImagesAsUsed; - $retval = array ( - 'tables' => array ( 'image', 'imagelinks' ), - 'fields' => array ( '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' ) ) + $retval = array( + 'tables' => array( 'image', 'imagelinks' ), + 'fields' => array( + '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' ) ) ); if ( $wgCountCategorizedImagesAsUsed ) { // Order is significant - $retval['tables'] = array ( 'image', 'page', 'categorylinks', - 'imagelinks' ); + $retval['tables'] = array( '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'] = array( + 'LEFT JOIN', 'cl_from = page_id' ); + $retval['join_conds']['imagelinks'] = array( + 'LEFT JOIN', 'il_to = page_title' ); } + return $retval; } @@ -80,4 +82,7 @@ class UnusedimagesPage extends ImageQueryPage { return $this->msg( 'unusedimagestext' )->parseAsBlock(); } + protected function getGroupName() { + return 'maintenance'; + } }