$res = $dbr->query( $sql );
$num = $dbr->numRows($res);
+ $this->preprocessResults( $dbr, $res );
+
$sk = $wgUser->getSkin( );
if($shownavigation) {
return $num;
}
+ /**
+ * Do any necessary preprocessing of the result object
+ */
+ function preprocessResults( &$db, &$res ) {}
+
/**
* Similar to above, but packaging in a syndicated feed instead of a web page
*/
if( !isset( $row->title ) ) {
return NULL;
}
- $title = Title::MakeTitle( IntVal( $row->namespace ), $row->title );
+ $title = Title::MakeTitle( intval( $row->namespace ), $row->title );
if( $title ) {
if( isset( $row->timestamp ) ) {
$date = $row->timestamp;