* enclose the content generated in a <div id="mw-spcontent"> (for javascript)
$num = $dbr->numRows($res);
$this->preprocessResults( $dbr, $res );
+
+ $wgOut->addHtml( XML::openElement( 'div', array('id' => 'mw-spcontent') ) );
# Top header and navigation
if( $shownavigation ) {
if( $shownavigation ) {
$wgOut->addHtml( '<p>' . $paging . '</p>' );
}
+
+ $wgOut->addHtml( XML::closeElement( 'div' ) );
return $num;
}
}
function openList( $offset ) {
- return "<ol start='" . ( $offset + 1 ) . "' class='special'>";
+ return "\n<ol start='" . ( $offset + 1 ) . "' class='special'>\n";
}
function closeList() {
- return '</ol>';
+ return "</ol>\n";
}
/**