Skip to content

Commit 7646825

Browse files
author
Alexander Gesinn
committed
added doPurge() that is required since SMW 2.5.1
1 parent e78b046 commit 7646825

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: SemanticDependencyUpdater.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
die( "ERROR: Semantic MediaWiki must be installed for Semantic Dummy Editor to run!" );
2121
}
2222

23-
define( 'SDU_VERSION', '1.1.0' );
23+
define( 'SDU_VERSION', '1.3.0' );
2424

2525
$wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'other'][] = array(
2626
'name' => 'SemanticDependencyUpdater',
2727
'author' => array(
2828
'[https://www.mediawiki.org/wiki/User:Fannon Simon Heimler]',
29+
'[https://www.mediawiki.org/wiki/User:Planetenxin|Alexander Gesinn]',
2930
'[https://www.mediawiki.org/wiki/User:Rcdeboer Remco C. de Boer]',
3031
),
3132
'url' => 'http://www.mediawiki.org/wiki/Extension:SemanticDependencyUpdater',
@@ -169,6 +170,7 @@ public static function dummyEdit( $title ) {
169170
if ( $page ) { // prevent NPE when page not found
170171
$text = $page->getText( Revision::RAW );
171172
$page->doEdit( $text, "[SemanticDependencyUpdater] Null edit." ); // since this is a null edit, the edit summary will be ignored.
173+
$page->doPurge(); // required since SMW 2.5.1
172174
}
173175
}
174176
}
@@ -198,6 +200,7 @@ function run() {
198200
if ( $page ) { // prevent NPE when page not found
199201
$text = $page->getText( Revision::RAW );
200202
$page->doEdit($text, "[SemanticDependencyUpdater] Null edit."); // since this is a null edit, the edit summary will be ignored.
203+
$page->doPurge(); // required since SMW 2.5.1
201204
}
202205

203206
wfProfileOut( __METHOD__ );

0 commit comments

Comments
 (0)