* Use ui language now that it is possible
[mediawiki.git] / includes / SpecialWithoutinterwiki.php
blob1567b290bd0c713b9ffb8c4aa37204c28ba2e1dd
1 <?php
3 /**
4 * Special page lists pages without language links
6 * @package MediaWiki
7 * @author Rob Church <robchur@gmail.com>
8 */
9 class WithoutInterwikiPage extends PageQueryPage {
11 function getName() {
12 return 'Withoutinterwiki';
15 function getPageHeader() {
16 return '<p>' . wfMsgHtml( 'withoutinterwiki-header' ) . '</p>';
19 function sortDescending() {
20 return false;
23 function isExpensive() {
24 return true;
27 function isSyndicated() {
28 return false;
31 function getSQL() {
32 $dbr = wfGetDB( DB_SLAVE );
33 list( $page, $langlinks ) = $dbr->tableNamesN( 'page', 'langlinks' );
34 return
35 "SELECT 'Withoutinterwiki' AS type,
36 page_namespace AS namespace,
37 page_title AS title,
38 page_title AS value
39 FROM $page
40 LEFT JOIN $langlinks
41 ON ll_from = page_id
42 WHERE ll_title IS NULL
43 AND page_namespace=" . NS_MAIN . "
44 AND page_is_redirect = 0";
49 function wfSpecialWithoutinterwiki() {
50 list( $limit, $offset ) = wfCheckLimits();
51 $wip = new WithoutInterwikiPage();
52 $wip->doQuery( $offset, $limit );