Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php |
— | — | @@ -1790,6 +1790,7 @@ |
1791 | 1791 | */ |
1792 | 1792 | protected function changeSMWPageID($oldid,$newid,$oldnamespace=-1,$newnamespace=-1, $sdata=true, $podata=true) { |
1793 | 1793 | $fname = 'SMW::changeSMWPageID'; |
| 1794 | + $db =& wfGetDB( DB_MASTER ); |
1794 | 1795 | // Update bnode references that use namespace field to store ids: |
1795 | 1796 | if ($sdata) { // bnodes are part of the data of a subject |
1796 | 1797 | $db->update('smw_ids', array('smw_namespace' => $newid), |