r22473 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22472‎ | r22473 | r22474 >
Date:08:22, 27 May 2007
Author:hashar
Status:old
Tags:
Comment:
* cleaner indenting for query pages
* enclose the content generated in a <div id="mw-spcontent"> (for javascript)
Modified paths:
  • /trunk/phase3/includes/QueryPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/QueryPage.php
@@ -332,6 +332,8 @@
333333 $num = $dbr->numRows($res);
334334
335335 $this->preprocessResults( $dbr, $res );
 336+
 337+ $wgOut->addHtml( XML::openElement( 'div', array('id' => 'mw-spcontent') ) );
336338
337339 # Top header and navigation
338340 if( $shownavigation ) {
@@ -364,6 +366,8 @@
365367 if( $shownavigation ) {
366368 $wgOut->addHtml( '<p>' . $paging . '</p>' );
367369 }
 370+
 371+ $wgOut->addHtml( XML::closeElement( 'div' ) );
368372
369373 return $num;
370374 }
@@ -427,11 +431,11 @@
428432 }
429433
430434 function openList( $offset ) {
431 - return "<ol start='" . ( $offset + 1 ) . "' class='special'>";
 435+ return "\n<ol start='" . ( $offset + 1 ) . "' class='special'>\n";
432436 }
433437
434438 function closeList() {
435 - return '</ol>';
 439+ return "</ol>\n";
436440 }
437441
438442 /**

Follow-up revisions

RevisionCommit summaryAuthorDate
r22484Merged revisions 22458-22483 via svnmerge from...david22:52, 27 May 2007
r22506Add class for prev/next/numlinks just like r22473 / r22482hashar12:32, 28 May 2007
r22518Merged revisions 22484-22517 via svnmerge from...david22:22, 28 May 2007