function isExpensive() {
return true;
}
+ function isSyndicated() { return false; }
function getSQL() {
$dbr =& wfGetDB( DB_SLAVE );
$cur = $dbr->tableName( 'cur' );
+ $name = $dbr->addQuotes( $this->getName() );
return
- "SELECT 'Shortpages' as type,
+ "SELECT $name as type,
cur_namespace as namespace,
cur_title as title,
LENGTH(cur_text) AS value
}
function formatResult( $skin, $result ) {
- global $wgLang;
+ global $wgLang, $wgContLang;
$nb = wfMsg( "nbytes", $wgLang->formatNum( $result->value ) );
- $link = $skin->makeKnownLink( $result->title, "" );
+ $link = $skin->makeKnownLink( $result->title, $wgContLang->convert( $result->title ) );
return "{$link} ({$nb})";
}
}