Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore.php |
— | — | @@ -780,7 +780,7 @@ |
781 | 781 | function updateData(SMWSemanticData $data, $newpage) { |
782 | 782 | wfProfileIn("SMWSQLStore::updateData (SMW)"); |
783 | 783 | $db =& wfGetDB( DB_MASTER ); |
784 | | - $subject = $data->getSubject(); |
| 784 | + $subject = $data->getSubject()->getTitle(); |
785 | 785 | if ($newpage) { // set new ID in relation table |
786 | 786 | $db->update('smw_relations', array('object_id' => $subject->getArticleID()), array('object_title' => $subject->getDBkey(), 'object_namespace' => $subject->getNamespace()), 'SMW::updateData::SetRelIDs'); |
787 | 787 | } else { |