http://www.mediawiki.org/wiki/Special:Code/MediaWiki/67400
Revision: 67400 Author: fabianh Date: 2010-06-05 12:57:12 +0000 (Sat, 05 Jun 2010) Log Message: ----------- Corrected copy/paste error (event_date) Modified Paths: -------------- trunk/extensions/SemanticResultFormats/Math/SRF_Math.php Modified: trunk/extensions/SemanticResultFormats/Math/SRF_Math.php =================================================================== --- trunk/extensions/SemanticResultFormats/Math/SRF_Math.php 2010-06-05 12:45:00 UTC (rev 67399) +++ trunk/extensions/SemanticResultFormats/Math/SRF_Math.php 2010-06-05 12:57:12 UTC (rev 67400) @@ -39,11 +39,11 @@ foreach ( $last_col->getContent() as $value ) { // handle each value only if it's of type Number or NAry if ( $value instanceof SMWNumberValue ) { - if ( method_exists( $event_date, 'getValueKey' ) ) { - $num = $event_date->getValueKey(); + if ( method_exists( $value, 'getValueKey' ) ) { + $num = $value->getValueKey(); } else { - $num = $event_date->getNumericValue(); + $num = $value->getNumericValue(); } } elseif ( $value instanceof SMWNAryValue ) { $inner_values = $value->getDVs(); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs