r37298 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37297‎ | r37298 | r37299 >
Date:06:17, 8 July 2008
Author:mkroetzsch
Status:old
Tags:
Comment:
fix safe method SMWSQLStore (class change in input)
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore.php (modified) (history)

Diff [purge]

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

Status & tagging log