Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialBrowse.php |
— | — | @@ -358,14 +358,16 @@ |
359 | 359 | */ |
360 | 360 | private function getPropertyLabel( SMWPropertyValue $property, $incoming = false ) { |
361 | 361 | global $smwgBrowseShowInverse; |
| 362 | + |
362 | 363 | if ( $incoming && $smwgBrowseShowInverse ) { |
363 | 364 | $oppositeprop = SMWPropertyValue::makeUserProperty( wfMsg( 'smw_inverse_label_property' ) ); |
364 | | - $labelarray = &smwfGetStore()->getPropertyValues( $property->getWikiPageValue(), $oppositeprop ); |
| 365 | + $labelarray = &smwfGetStore()->getPropertyValues( $property->getDataItem(), $oppositeprop ); |
365 | 366 | $rv = ( count( $labelarray ) > 0 ) ? $labelarray[0]->getLongWikiText(): |
366 | 367 | wfMsg( 'smw_inverse_label_default', $property->getWikiValue() ); |
367 | 368 | } else { |
368 | 369 | $rv = $property->getWikiValue(); |
369 | 370 | } |
| 371 | + |
370 | 372 | return $this->unbreak( $rv ); |
371 | 373 | } |
372 | 374 | |