Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialBrowse.php |
— | — | @@ -354,6 +354,7 @@ |
355 | 355 | * |
356 | 356 | * @param[in] $property SMWPropertyValue The property of interest |
357 | 357 | * @param[in] $incoming bool If it is an incoming property |
| 358 | + * |
358 | 359 | * @return string The label of the property |
359 | 360 | */ |
360 | 361 | private function getPropertyLabel( SMWPropertyValue $property, $incoming = false ) { |
— | — | @@ -361,7 +362,7 @@ |
362 | 363 | |
363 | 364 | if ( $incoming && $smwgBrowseShowInverse ) { |
364 | 365 | $oppositeprop = SMWPropertyValue::makeUserProperty( wfMsg( 'smw_inverse_label_property' ) ); |
365 | | - $labelarray = &smwfGetStore()->getPropertyValues( $property->getDataItem(), $oppositeprop ); |
| 366 | + $labelarray = &smwfGetStore()->getPropertyValues( $property->getDataItem(), $oppositeprop->getDataItem() ); |
366 | 367 | $rv = ( count( $labelarray ) > 0 ) ? $labelarray[0]->getLongWikiText(): |
367 | 368 | wfMsg( 'smw_inverse_label_default', $property->getWikiValue() ); |
368 | 369 | } else { |