r93280 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93279‎ | r93280 | r93281 >
Date:16:02, 27 July 2011
Author:jeroendedauw
Status:deferred
Tags:lamecommitsummary 
Comment:
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialBrowse.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialBrowse.php
@@ -354,6 +354,7 @@
355355 *
356356 * @param[in] $property SMWPropertyValue The property of interest
357357 * @param[in] $incoming bool If it is an incoming property
 358+ *
358359 * @return string The label of the property
359360 */
360361 private function getPropertyLabel( SMWPropertyValue $property, $incoming = false ) {
@@ -361,7 +362,7 @@
362363
363364 if ( $incoming && $smwgBrowseShowInverse ) {
364365 $oppositeprop = SMWPropertyValue::makeUserProperty( wfMsg( 'smw_inverse_label_property' ) );
365 - $labelarray = &smwfGetStore()->getPropertyValues( $property->getDataItem(), $oppositeprop );
 366+ $labelarray = &smwfGetStore()->getPropertyValues( $property->getDataItem(), $oppositeprop->getDataItem() );
366367 $rv = ( count( $labelarray ) > 0 ) ? $labelarray[0]->getLongWikiText():
367368 wfMsg( 'smw_inverse_label_default', $property->getWikiValue() );
368369 } else {

Follow-up revisions

RevisionCommit summaryAuthorDate
r93282fu r93276 r93280jeroendedauw16:36, 27 July 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r93276attempt to fix issue, not testedjeroendedauw15:24, 27 July 2011

Status & tagging log