Index: trunk/extensions/SemanticMediaWiki/includes/parserhooks/SMW_Subobject.php |
— | — | @@ -27,7 +27,7 @@ |
28 | 28 | |
29 | 29 | $params = func_get_args(); |
30 | 30 | array_shift( $params ); // We already know the $parser ... |
31 | | - $subobjectName = trim( array_shift( $params ) ); |
| 31 | + $subobjectName = str_replace( ' ', '_', trim( array_shift( $params ) ) ); |
32 | 32 | |
33 | 33 | $semanticData = SMWParseData::getSMWData( $parser )->getChild( $subobjectName ); |
34 | 34 | |
— | — | @@ -37,6 +37,8 @@ |
38 | 38 | // Only add the property when there is both a name and a value. |
39 | 39 | if ( count( $parts ) == 2 ) { |
40 | 40 | self::addPropertyValueToSemanticData( $parts[0], $parts[1], $semanticData ); |
| 41 | + } else { |
| 42 | + //self::$m_errors[] = wfMsgForContent( 'smw_noinvannot' ); |
41 | 43 | } |
42 | 44 | } |
43 | 45 | |