X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryDuplicateFiles.php;h=22129577160698d070907a20d5b6d331d9dc7b3d;hb=1cc3c9a9e0d37621da23b3c45c61063d43493c9b;hp=46454029fb46fed26a1409db0e854ae9b8f76258;hpb=68c11363de9ff61acf9c865efed94cc5e3bfc529;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryDuplicateFiles.php b/includes/api/ApiQueryDuplicateFiles.php index 46454029fb..2212957716 100644 --- a/includes/api/ApiQueryDuplicateFiles.php +++ b/includes/api/ApiQueryDuplicateFiles.php @@ -52,7 +52,7 @@ class ApiQueryDuplicateFiles extends ApiQueryGeneratorBase { */ private function run( $resultPageSet = null ) { $params = $this->extractRequestParams(); - $namespaces = $this->getPageSet()->getAllTitlesByNamespace(); + $namespaces = $this->getPageSet()->getGoodAndMissingTitlesByNamespace(); if ( empty( $namespaces[NS_FILE] ) ) { return; } @@ -188,17 +188,6 @@ class ApiQueryDuplicateFiles extends ApiQueryGeneratorBase { ); } - public function getResultProperties() { - return array( - '' => array( - 'name' => 'string', - 'user' => 'string', - 'timestamp' => 'timestamp', - 'shared' => 'boolean', - ) - ); - } - public function getDescription() { return 'List all files that are duplicates of the given file(s) based on hash values.'; }