Index: trunk/extensions/SemanticDrilldown/includes/SD_Utils.inc |
— | — | @@ -121,7 +121,13 @@ |
122 | 122 | $res = $store->getPropertyValues( $subject_title, $property ); |
123 | 123 | $values = array(); |
124 | 124 | foreach ( $res as $prop_val ) { |
125 | | - $values[] = html_entity_decode( str_replace( '_', ' ', $prop_val->getValueKey() ) ); |
| 125 | + // depends on version of SMW |
| 126 | + if ( method_exists( $prop_val, 'getValueKey' ) ) { |
| 127 | + $actual_val = $prop_val->getValueKey(); |
| 128 | + } else { |
| 129 | + $actual_val = $prop_val->getXSDValue(); |
| 130 | + } |
| 131 | + $values[] = html_entity_decode( str_replace( '_', ' ', $actual_val ) ); |
126 | 132 | } |
127 | 133 | return $values; |
128 | 134 | } |