/**
* Cache page existence for performance
*/
- 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
* @return string
*/
public function formatResult( $skin, $result ) {
- global $wgLang;
$title = Title::makeTitleSafe( $result->namespace, $result->title );
if( $title instanceof Title ) {
if( $this->isCached() ) {
return "Invalid title in result set; {$tsafe}";
}
}
-
+
/**
* Make a "what links here" link for a specified result if required
*
return null;
}
}
-
+
}
/**
$wpp->doQuery( $offset, $limit, !$inc );
}
-
-?>