3 * @addtogroup SpecialPage
5 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
6 * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason
7 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
11 * @addtogroup SpecialPage
13 class MostimagesPage
extends ImageQueryPage
{
15 function getName() { return 'Mostimages'; }
16 function isExpensive() { return true; }
17 function isSyndicated() { return false; }
20 $dbr = wfGetDB( DB_SLAVE
);
21 $imagelinks = $dbr->tableName( 'imagelinks' );
26 " . NS_IMAGE
. " as namespace,
35 function getCellHtml( $row ) {
37 return wfMsgExt( 'nlinks', array( 'parsemag', 'escape' ),
38 $wgLang->formatNum( $row->value
) ) . '<br />';
46 function wfSpecialMostimages() {
47 list( $limit, $offset ) = wfCheckLimits();
49 $wpp = new MostimagesPage();
51 $wpp->doQuery( $offset, $limit );