X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialListDuplicatedFiles.php;h=49fa417c0e3b10eb83ec457361be6731aa405f9b;hb=f43ff7490e2139c0df3e56f409da64598d559075;hp=3f47f91cb35d728163e8f4437448ffc0968dfa4e;hpb=5a4fdb5b4e82fd68e200a887cac9d4e106fed0af;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialListDuplicatedFiles.php b/includes/specials/SpecialListDuplicatedFiles.php index 3f47f91cb3..49fa417c0e 100644 --- a/includes/specials/SpecialListDuplicatedFiles.php +++ b/includes/specials/SpecialListDuplicatedFiles.php @@ -54,18 +54,18 @@ class ListDuplicatedFilesPage extends QueryPage { * @return array */ public function getQueryInfo() { - return array( - 'tables' => array( 'image' ), - 'fields' => array( + return [ + 'tables' => [ 'image' ], + 'fields' => [ 'namespace' => NS_FILE, 'title' => 'MIN(img_name)', 'value' => 'count(*)' - ), - 'options' => array( + ], + 'options' => [ 'GROUP BY' => 'img_sha1', 'HAVING' => 'count(*) > 1', - ), - ); + ], + ]; } /** @@ -96,12 +96,12 @@ class ListDuplicatedFilesPage extends QueryPage { // Future version might include a list of the first 5 duplicates // perhaps separated by an "↔". $image1 = Title::makeTitle( $result->namespace, $result->title ); - $dupeSearch = SpecialPage::getTitleFor( 'FileDuplicateSearch', $image1->getDBKey() ); + $dupeSearch = SpecialPage::getTitleFor( 'FileDuplicateSearch', $image1->getDBkey() ); $msg = $this->msg( 'listduplicatedfiles-entry' ) ->params( $image1->getText() ) ->numParams( $result->value - 1 ) - ->params( $dupeSearch->getPrefixedDBKey() ); + ->params( $dupeSearch->getPrefixedDBkey() ); return $msg->parse(); }