Index: trunk/extensions/SemanticInternalObjects/SemanticInternalObjects.php |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | |
11 | 11 | if ( !defined( 'MEDIAWIKI' ) ) die(); |
12 | 12 | |
13 | | -define( 'SIO_VERSION', '0.6' ); |
| 13 | +define( 'SIO_VERSION', '0.6.1' ); |
14 | 14 | |
15 | 15 | $wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'parserhook'][] = array( |
16 | 16 | 'path' => __FILE__, |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | $wgHooks['ParserFirstCallInit'][] = 'siofRegisterParserFunctions'; |
25 | 25 | $wgHooks['LanguageGetMagic'][] = 'siofLanguageGetMagic'; |
26 | 26 | $wgHooks['ParserClearState'][] = 'SIOHandler::clearState'; |
27 | | -$wgHooks['smwDeleteSemanticData'][] = 'SIOHandler::updateData'; |
| 27 | +$wgHooks['SMWSQLStore2::updateDataAfter'][] = 'SIOHandler::updateData'; |
28 | 28 | $wgHooks['smwUpdatePropertySubjects'][] = 'SIOHandler::handleUpdatingOfInternalObjects'; |
29 | 29 | $wgHooks['smwRefreshDataJobs'][] = 'SIOHandler::handleRefreshingOfInternalObjects'; |
30 | 30 | $wgHooks['smwAddToRDFExport'][] = 'SIOSQLStore::createRDF'; |
Index: trunk/extensions/SemanticInternalObjects/SemanticInternalObjects_body.php |
— | — | @@ -310,13 +310,14 @@ |
311 | 311 | } |
312 | 312 | } |
313 | 313 | |
314 | | - public static function updateData( $subject ) { |
| 314 | + public static function updateData( $sqlStore, $data ) { |
315 | 315 | $sioSQLStore = new SIOSQLStore(); |
316 | 316 | // Find all "pages" in the SMW IDs table that are internal |
317 | 317 | // objects for this page, and delete their properties from |
318 | 318 | // the SMW tables. |
319 | 319 | // Then save the current contents of the $mInternalObjects |
320 | 320 | // array. |
| 321 | + $subject = $data->getSubject(); |
321 | 322 | $pageName = $subject->getDBKey(); |
322 | 323 | $namespace = $subject->getNamespace(); |
323 | 324 | $idsForDeletion = SIOSQLStore::getIDsForDeletion( $pageName, $namespace ); |