Index: trunk/extensions/SemanticMediaWiki/includes/SMW_ParseData.php |
— | — | @@ -251,7 +251,7 @@ |
252 | 252 | if ( $processSemantics ) { |
253 | 253 | smwfGetStore()->updateData( $semdata ); |
254 | 254 | } else { |
255 | | - smwfGetStore()->clearData( $semdata->getSubject()->getTitle() ); |
| 255 | + smwfGetStore()->clearData( $semdata->getSubject() ); |
256 | 256 | } |
257 | 257 | |
258 | 258 | // Finally trigger relevant Updatejobs if necessary |
— | — | @@ -390,7 +390,11 @@ |
391 | 391 | $output = self::$mPrevOutput; |
392 | 392 | |
393 | 393 | if ( !isset( $output ) ) { |
394 | | - smwfGetStore()->clearData( $links_update->mTitle, SMWFactbox::isNewArticle() ); |
| 394 | + smwfGetStore()->clearData( new SMWDIWikiPage( |
| 395 | + $links_update->mTitle->getDbKey(), |
| 396 | + $links_update->mTitle->getNamespace(), |
| 397 | + $links_update->mTitle->getInterwiki() |
| 398 | + ) ); |
395 | 399 | return true; |
396 | 400 | } |
397 | 401 | } |
Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_Store.php |
— | — | @@ -264,10 +264,11 @@ |
265 | 265 | |
266 | 266 | /** |
267 | 267 | * Clear all semantic data specified for some page. |
| 268 | + * |
| 269 | + * @param SMWDIWikiPage $di |
268 | 270 | */ |
269 | | - public function clearData( Title $subject ) { |
270 | | - $emptydata = new SMWSemanticData( new SMWDIWikiPage( $subject->getDbKey(), $subject->getNamespace(), $subject->getInterwiki() ) ); |
271 | | - $this->updateData( $emptydata ); |
| 271 | + public function clearData( SMWDIWikiPage $di ) { |
| 272 | + $this->updateData( new SMWSemanticData( $di ) ); |
272 | 273 | } |
273 | 274 | |
274 | 275 | /** |