r53799 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53798‎ | r53799 | r53800 >
Date:09:23, 27 July 2009
Author:tstarling
Status:deferred
Tags:
Comment:
Fix debugging code left in
Modified paths:
  • /trunk/extensions/SecurePoll/includes/Tallier.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SecurePoll/includes/Tallier.php
@@ -464,18 +464,16 @@
465465 }
466466 $v12 = $victories[$oid1][$oid2];
467467 $v21 = $victories[$oid2][$oid1];
468 - #if ( $v12 > $v21 ) {
 468+ if ( $v12 > $v21 ) {
469469 # Direct victory
470470 $strengths[$oid1][$oid2] = array( $v12, $v21 );
471 - #} else {
 471+ } else {
472472 # Direct loss
473 - # $strengths[$oid1][$oid2] = array( 0, 0 );
474 - #}
 473+ $strengths[$oid1][$oid2] = array( 0, 0 );
 474+ }
475475 }
476476 }
477477
478 - echo $this->convertMatrixToText( $strengths, $this->optionIds ) . "\n";
479 -
480478 # Next (continuing the Floyd-Warshall algorithm) we calculate the strongest indirect
481479 # paths. This part dominates the O(N^3) time order.
482480 foreach ( $this->optionIds as $oid1 ) {

Status & tagging log