<?php
+#### FIXME THIS FILE IS BADLY BROKEN FOR NEW SCHEMA
/**
* @deprecated
* @package MediaWiki
$fname = 'isTemplateInitialised';
$dbw =& wfGetDB( DB_MASTER );
- $n = $dbw->selectField( 'cur', 'count(*)', array( 'cur_namespace' => NS_MEDIAWIKI ) );
+ $n = $dbw->selectField( 'page', 'count(*)', array( 'page_namespace' => NS_MEDIAWIKI ) );
return $n > count( $wgAllMessagesEn ) ? false : true;
}
$dbkeys[$title->getDBkey()] = 1;
}
- $res = $dbw->select( 'cur', array( 'cur_id', 'cur_title' ), array( 'cur_namespace' => NS_MEDIAWIKI ) );
+ $res = $dbw->select( 'page', array( 'page_id', 'page_title' ), array( 'page_namespace' => NS_MEDIAWIKI ) );
# Compile target array
$targets = array();
if ( $response == 0 ) {
$dbr =& wfGetDB( DB_SLAVE );
- $row = $dbr->selectRow( "cur", array("count(*) as c"), array("cur_namespace" => NS_MEDIAWIKI) );
+ $row = $dbr->selectRow( "page", array("count(*) as c"), array("page_namespace" => NS_MEDIAWIKI) );
print "Current namespace size: {$row->c}\n";
print <<<END