r92143 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92142‎ | r92143 | r92144 >
Date:07:00, 14 July 2011
Author:devayon
Status:deferred
Tags:
Comment:
Fixed bug, parameters not a multiple of 3 aren't displayed. follow-up to r85213
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialAsk.php
@@ -766,17 +766,15 @@
767767 $rowHtml .= $option;
768768 $i++;
769769
770 - if ( $i % 3 == 0 ) {
771 - $resultHtml .= Html::rawElement(
772 - 'div',
773 - array(
774 - 'style' => 'background: ' . ( $i % 6 == 0 ? 'white' : '#dddddd' ) . ';'
775 - ),
776 - $rowHtml
777 - );
778 - $rowHtml = '';
 770+ $resultHtml .= Html::rawElement(
 771+ 'div',
 772+ array(
 773+ 'style' => 'background: ' . ( $i % 6 == 0 ? 'white' : '#dddddd' ) . ';'
 774+ ),
 775+ $rowHtml
 776+ );
 777+ $rowHtml = '';
779778 }
780 - }
781779
782780 return $resultHtml;
783781 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r85213some preliminary work on switching the query printers to use validator, the s...jeroendedauw21:51, 2 April 2011