X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/d7967d5e4460e08b6b258307afbca0596b18a3dd:/includes/SpecialMostimages.php..refs/tags/mediawiki-1.14.0:/includes/specials/SpecialMostimages.php diff --git a/includes/SpecialMostimages.php b/includes/specials/SpecialMostimages.php similarity index 84% rename from includes/SpecialMostimages.php rename to includes/specials/SpecialMostimages.php index beb42fc1..5cc100ba 100644 --- a/includes/SpecialMostimages.php +++ b/includes/specials/SpecialMostimages.php @@ -1,6 +1,7 @@ * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason @@ -9,7 +10,7 @@ /** * implements Special:Mostimages - * @addtogroup SpecialPage + * @ingroup SpecialPage */ class MostimagesPage extends ImageQueryPage { @@ -24,18 +25,18 @@ class MostimagesPage extends ImageQueryPage { " SELECT 'Mostimages' as type, - " . NS_IMAGE . " as namespace, + " . NS_FILE . " as namespace, il_to as title, COUNT(*) as value FROM $imagelinks - GROUP BY 1,2,3 + GROUP BY il_to HAVING COUNT(*) > 1 "; } function getCellHtml( $row ) { global $wgLang; - return wfMsgExt( 'nlinks', array( 'parsemag', 'escape' ), + return wfMsgExt( 'nlinks', array( 'parsemag', 'escape' ), $wgLang->formatNum( $row->value ) ) . '
'; } @@ -51,5 +52,3 @@ function wfSpecialMostimages() { $wpp->doQuery( $offset, $limit ); } - -