Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DataValueFactory.php |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | $result = new SMWDataValueFactory::$m_typeclasses['__lin']($typeid); |
64 | 64 | } else { // type really unknown |
65 | 65 | wfLoadExtensionMessages('SemanticMediaWiki'); |
66 | | - return new SMWErrorValue(wfMsgForContent('smw_unknowntype', $typevalue->getWikiValue() ), $value, $caption); |
| 66 | + return new SMWErrorValue(wfMsgForContent('smw_unknowntype', $typeid ), $value, $caption); |
67 | 67 | } |
68 | 68 | if ($property !== NULL) $result->setProperty($property); |
69 | 69 | if ($value !== false) $result->setUserValue($value,$caption); |