|
20 | 20 | die( "ERROR: Semantic MediaWiki must be installed for Semantic Dummy Editor to run!" );
|
21 | 21 | }
|
22 | 22 |
|
23 |
| -define( 'SDU_VERSION', '1.1.0' ); |
| 23 | +define( 'SDU_VERSION', '1.3.0' ); |
24 | 24 |
|
25 | 25 | $wgExtensionCredits[defined( 'SEMANTIC_EXTENSION_TYPE' ) ? 'semantic' : 'other'][] = array(
|
26 | 26 | 'name' => 'SemanticDependencyUpdater',
|
27 | 27 | 'author' => array(
|
28 | 28 | '[https://www.mediawiki.org/wiki/User:Fannon Simon Heimler]',
|
| 29 | + '[https://www.mediawiki.org/wiki/User:Planetenxin|Alexander Gesinn]', |
29 | 30 | '[https://www.mediawiki.org/wiki/User:Rcdeboer Remco C. de Boer]',
|
30 | 31 | ),
|
31 | 32 | 'url' => 'http://www.mediawiki.org/wiki/Extension:SemanticDependencyUpdater',
|
@@ -169,6 +170,7 @@ public static function dummyEdit( $title ) {
|
169 | 170 | if ( $page ) { // prevent NPE when page not found
|
170 | 171 | $text = $page->getText( Revision::RAW );
|
171 | 172 | $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 |
172 | 174 | }
|
173 | 175 | }
|
174 | 176 | }
|
@@ -198,6 +200,7 @@ function run() {
|
198 | 200 | if ( $page ) { // prevent NPE when page not found
|
199 | 201 | $text = $page->getText( Revision::RAW );
|
200 | 202 | $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 |
201 | 204 | }
|
202 | 205 |
|
203 | 206 | wfProfileOut( __METHOD__ );
|
|
0 commit comments