*/
class WantedCategoriesPage extends QueryPage {
- function getName() { return 'Wantedcategories'; }
- function isExpensive() { return true; }
- function isSyndicated() { return false; }
+ function getName() {
+ return 'Wantedcategories';
+ }
+
+ function isExpensive() {
+ return true;
+ }
+
+ function isSyndicated() {
+ return false;
+ }
function getSQL() {
$dbr = wfGetDB( DB_SLAVE );
/**
* Fetch user page links and cache their existence
*/
- function preprocessResults( &$db, &$res ) {
+ function preprocessResults( $db, $res ) {
$batch = new LinkBatch;
while ( $row = $db->fetchObject( $res ) )
- $batch->addObj( Title::makeTitleSafe( $row->namespace, $row->title ) );
+ $batch->add( $row->namespace, $row->title );
$batch->execute();
// Back to start for display
$wpp->doQuery( $offset, $limit );
}
-?>
+