Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2.php |
— | — | @@ -2261,7 +2261,11 @@ |
2262 | 2262 | $fname = 'SMW::deleteSemanticData'; |
2263 | 2263 | $id = $this->getSMWPageID( $subject->getDBkey(), $subject->getNamespace(), $subject->getInterwiki(), false ); |
2264 | 2264 | |
2265 | | - if ( $id == 0 ) return; // not (directly) used anywhere yet, maybe a redirect but we do not care here |
| 2265 | + if ( $id == 0 ) { |
| 2266 | + // not (directly) used anywhere yet, may be a redirect but we do not care here |
| 2267 | + wfRunHooks( 'smwDeleteSemanticData', array( $subject ) ); |
| 2268 | + return; |
| 2269 | + } |
2266 | 2270 | |
2267 | 2271 | foreach ( self::getPropertyTables() as $proptable ) { |
2268 | 2272 | if ( $proptable->idsubject ) { |
— | — | @@ -2472,4 +2476,4 @@ |
2473 | 2477 | return self::$prop_tables; |
2474 | 2478 | } |
2475 | 2479 | |
2476 | | -} |
\ No newline at end of file |
| 2480 | +} |