r43431 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43430‎ | r43431 | r43432 >
Date:00:43, 13 November 2008
Author:tparscal
Status:old
Tags:
Comment:
Fixed scale issue
Modified paths:
  • /trunk/extensions/ContributionReporting/FundraiserStatistics_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ContributionReporting/FundraiserStatistics_body.php
@@ -29,6 +29,17 @@
3030 $htmlOut = Xml::openElement( 'div', array( 'style' => 'margin-bottom: 10px;' ) );
3131 $today = strtotime( date( 'M j Y' ) );
3232
 33+ $max = 0;
 34+ foreach ( $egFundraiserStatisticsFundraisers as $fundraiser ) {
 35+ $days = $this->getDailyTotals( $fundraiser['start'], $fundraiser['end'] );
 36+ // Determine maximimum for fundraiser
 37+ foreach ( $days as $day ) {
 38+ if ( $day[0] > $max ) {
 39+ $max = $day[0];
 40+ }
 41+ }
 42+ }
 43+
3344 $columns = array();
3445 foreach ( $egFundraiserStatisticsFundraisers as $fundraiser ) {
3546 $htmlOut .= Xml::element( 'span',
@@ -43,14 +54,6 @@
4455 // Get data for fundraiser
4556 $days = $this->getDailyTotals( $fundraiser['start'], $fundraiser['end'] );
4657
47 - // Determine maximimum for fundraiser
48 - $max = 0;
49 - foreach ( $days as $day ) {
50 - if ( $day[0] > $max ) {
51 - $max = $day[0];
52 - }
53 - }
54 -
5558 $todayStyle = 'position:absolute;' .
5659 'width:6px;' .
5760 'height:6px;' .

Status & tagging log