r67400 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67399‎ | r67400 | r67401 >
Date:12:57, 5 June 2010
Author:fabianh
Status:deferred
Tags:
Comment:
Corrected copy/paste error (event_date)
Modified paths:
  • /trunk/extensions/SemanticResultFormats/Math/SRF_Math.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/Math/SRF_Math.php
@@ -39,11 +39,11 @@
4040 foreach ( $last_col->getContent() as $value ) {
4141 // handle each value only if it's of type Number or NAry
4242 if ( $value instanceof SMWNumberValue ) {
43 - if ( method_exists( $event_date, 'getValueKey' ) ) {
44 - $num = $event_date->getValueKey();
 43+ if ( method_exists( $value, 'getValueKey' ) ) {
 44+ $num = $value->getValueKey();
4545 }
4646 else {
47 - $num = $event_date->getNumericValue();
 47+ $num = $value->getNumericValue();
4848 }
4949 } elseif ( $value instanceof SMWNAryValue ) {
5050 $inner_values = $value->getDVs();

Status & tagging log