r95629 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r95628‎ | r95629 | r95630 >
Date:15:41, 28 August 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
small fix
Modified paths:
  • /trunk/extensions/SemanticResultFormats/Math/SRF_Math.php (modified) (history)
  • /trunk/extensions/SemanticResultFormats/RELEASE-NOTES (modified) (history)
  • /trunk/extensions/SemanticResultFormats/TagCloud/SRF_TagCloud.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/Math/SRF_Math.php
@@ -39,6 +39,10 @@
4040 protected function getResultText( SMWQueryResult $res, $outputmode ) {
4141 $numbers = $this->getNumbers( $res );
4242
 43+ if ( count( $numbers ) == 0 ) {
 44+ return '';
 45+ }
 46+
4347 switch ( $this->mFormat ) {
4448 case 'max':
4549 return max( $numbers );
Index: trunk/extensions/SemanticResultFormats/TagCloud/SRF_TagCloud.php
@@ -140,7 +140,6 @@
141141 $max = reset( $tags ) or $max = 1;
142142 $maxSizeIncrease = $this->maxSize - $this->minTagSize;
143143
144 -
145144 // Loop over the tags, and replace their count by a size.
146145 foreach ( $tags as &$tag ) {
147146 switch ( $this->sizeMode ) {
Index: trunk/extensions/SemanticResultFormats/RELEASE-NOTES
@@ -2,6 +2,10 @@
33 http://semantic-mediawiki.org/wiki/Semantic_Result_Formats
44
55
 6+== SRF 1.6.2 ==
 7+
 8+* Fixed error in math printer when there are no numerical results.
 9+
610 == SRF 1.6.1 ==
711
812 Released on August 20, 2011.