Index: trunk/extensions/SemanticMediaWiki/specials/SearchTriple/SMW_SpecialPageProperty.php |
— | — | @@ -55,7 +55,7 @@ |
56 | 56 | $subject = SMWDataValueFactory::newTypeIDValue( '_wpg', $pagename ); |
57 | 57 | $pagename = $subject->isValid() ? $subject->getText() : ''; |
58 | 58 | $property = SMWPropertyValue::makeUserProperty( $propname ); |
59 | | - $propname = $property->isvalid() ? $property->getWikiValue() : ''; |
| 59 | + $propname = $property->isValid() ? $property->getWikiValue() : ''; |
60 | 60 | |
61 | 61 | // Produce output |
62 | 62 | $html = ''; |
Index: trunk/extensions/SemanticMediaWiki/includes/datavalues/SMW_DV_Record.php |
— | — | @@ -242,9 +242,9 @@ |
243 | 243 | |
244 | 244 | if ( count( $dataItems ) == 1 ) { |
245 | 245 | $propertyListValue = new SMWPropertyListValue( '__pls' ); |
246 | | - $propertyListValue->setDataItem( $dataItems[0] ); |
| 246 | + $propertyListValue->setDataItem( reset( $dataItems ) ); |
247 | 247 | |
248 | | - if ( $propertyListValue->isvalid() ) { |
| 248 | + if ( $propertyListValue->isValid() ) { |
249 | 249 | return $propertyListValue->getPropertyDataItems(); |
250 | 250 | } |
251 | 251 | } |
Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_PrintRequest.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | if ( ( ( $mode == self::PRINT_CATS || $mode == self::PRINT_THIS ) && |
48 | 48 | $data !== null ) || |
49 | 49 | ( $mode == self::PRINT_PROP && |
50 | | - ( !( $data instanceof SMWPropertyValue ) || !$data->isvalid() ) ) || |
| 50 | + ( !( $data instanceof SMWPropertyValue ) || !$data->isValid() ) ) || |
51 | 51 | ( $mode == self::PRINT_CCAT && |
52 | 52 | !( $data instanceof Title ) ) ) { |
53 | 53 | throw new InvalidArgumentException( 'Data provided for print request does not fit the type of printout.' ); |