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 * implements Special:Mostimages
12 * @addtogroup SpecialPage
14 class MostimagesPage
extends ImageQueryPage
{
16 function getName() { return 'Mostimages'; }
17 function isExpensive() { return true; }
18 function isSyndicated() { return false; }
21 $dbr = wfGetDB( DB_SLAVE
);
22 $imagelinks = $dbr->tableName( 'imagelinks' );
27 " . NS_IMAGE
. " as namespace,
36 function getCellHtml( $row ) {
38 return wfMsgExt( 'nlinks', array( 'parsemag', 'escape' ),
39 $wgLang->formatNum( $row->value
) ) . '<br />';
47 function wfSpecialMostimages() {
48 list( $limit, $offset ) = wfCheckLimits();
50 $wpp = new MostimagesPage();
52 $wpp->doQuery( $offset, $limit );