Index: trunk/extensions/SemanticMediaWiki/includes/SMW_Hooks.php |
— | — | @@ -277,17 +277,6 @@ |
278 | 278 | } |
279 | 279 | |
280 | 280 | /** |
281 | | -* Restore semantic data if articles are undeleted. |
282 | | -*/ |
283 | | -function smwfUndeleteHook(&$title, $create) { |
284 | | - if ($create) { |
285 | | - SMWFactbox::setNewArticle(); |
286 | | - } |
287 | | - SMWFactbox::storeData(smwfIsSemanticsProcessed($title->getNamespace())); |
288 | | - return true; // always return true, in order not to stop MW's hook processing! |
289 | | -} |
290 | | - |
291 | | -/** |
292 | 281 | * This method will be called whenever an article is deleted so that |
293 | 282 | * semantic properties are cleared appropriately. |
294 | 283 | */ |
Index: trunk/extensions/SemanticMediaWiki/includes/SMW_GlobalFunctions.php |
— | — | @@ -246,7 +246,6 @@ |
247 | 247 | |
248 | 248 | $wgHooks['InternalParseBeforeLinks'][] = 'smwfParserHook'; // parse annotations |
249 | 249 | $wgHooks['ArticleSave'][] = 'smwfPreSaveHook'; // check some settings here |
250 | | - $wgHooks['ArticleUndelete'][] = 'smwfUndeleteHook'; // restore annotations |
251 | 250 | $wgHooks['ArticleDelete'][] = 'smwfDeleteHook'; // delete annotations |
252 | 251 | $wgHooks['TitleMoveComplete'][]='smwfMoveHook'; // move annotations |
253 | 252 | $wgHooks['ParserAfterTidy'][] = 'smwfParserAfterTidy'; // add items to HTML header during parsing |