4 * @subpackage SpecialPage
6 * @author Ashar Voultoiz <hashar@altern.org>
7 * @licence GNU General Public Licence 2.0 or later
11 class ListinterwikisPage
extends QueryPage
{
13 function getName() { return( 'Listinterwikis' ); }
14 function isExpensive() { return false; }
15 function isSyndicated() { return false; }
16 function sortDescending() { return false; }
19 * We have a little fun with title, namespace but its required by QueryPage.
22 $dbr =& wfGetDB( DB_SLAVE
);
23 $iw = $dbr->tableName( 'interwiki' );
24 $sql = "SELECT 'Listinterwikis' AS type, iw_url AS title, 0 AS namespace, iw_prefix AS value, iw_local, iw_trans FROM $iw";
28 function formatResult( $skin, $result ) {
32 . $skin->makeExternalLink($result->title
, $result->title
);
36 function wfSpecialListinterwikis() {
37 list( $limit, $offset ) = wfCheckLimits();
38 $lip = new ListinterwikisPage();
39 $lip->doQuery( $offset, $limit );