r82119 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82118‎ | r82119 | r82120 >
Date:17:57, 14 February 2011
Author:btongminh
Status:ok
Tags:
Comment:
Fix for WordCloud: If the usage is smaller than all defined boundaries, you need to have a very high instead of of low class number. Since infinity is a bit unpractical, use max( ) + 1
Modified paths:
  • /trunk/extensions/CodeReview/ui/WordCloud.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CodeReview/ui/WordCloud.php
@@ -136,6 +136,6 @@
137137 return $class;
138138 }
139139 }
140 - return 0;
 140+ return max( array_keys( $this->classPercentages ) ) + 1;
141141 }
142142 }

Status & tagging log