6 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
7 * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason
8 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
12 * implements Special:Mostimages
13 * @ingroup SpecialPage
15 class MostimagesPage
extends ImageQueryPage
{
17 function getName() { return 'Mostimages'; }
18 function isExpensive() { return true; }
19 function isSyndicated() { return false; }
22 $dbr = wfGetDB( DB_SLAVE
);
23 $imagelinks = $dbr->tableName( 'imagelinks' );
28 " . NS_FILE
. " as namespace,
37 function getCellHtml( $row ) {
39 return wfMsgExt( 'nlinks', array( 'parsemag', 'escape' ),
40 $wgLang->formatNum( $row->value
) ) . '<br />';
48 function wfSpecialMostimages() {
49 list( $limit, $offset ) = wfCheckLimits();
51 $wpp = new MostimagesPage();
53 $wpp->doQuery( $offset, $limit );