File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ public static function dummyEdit( $title ) {
172
172
if ( $ page ) { // prevent NPE when page not found
173
173
$ content = $ page ->getContent ( Revision::RAW );
174
174
$ text = ContentHandler::getContentText ( $ content );
175
- $ page ->doEdit ( $ text ,
175
+ $ page ->doEditContent ( ContentHandler:: makeContent ( $ text, $ page -> getTitle () ) ,
176
176
"[SemanticDependencyUpdater] Null edit. " ); // since this is a null edit, the edit summary will be ignored.
177
177
$ page ->doPurge (); // required since SMW 2.5.1
178
178
}
@@ -204,7 +204,7 @@ function run() {
204
204
if ( $ page ) { // prevent NPE when page not found
205
205
$ content = $ page ->getContent ( Revision::RAW );
206
206
$ text = ContentHandler::getContentText ( $ content );
207
- $ page ->doEdit ( $ text ,
207
+ $ page ->doEditContent ( ContentHandler:: makeContent ( $ text, $ page -> getTitle () ) ,
208
208
"[SemanticDependencyUpdater] Null edit. " ); // since this is a null edit, the edit summary will be ignored.
209
209
$ page ->doPurge (); // required since SMW 2.5.1
210
210
}
You can’t perform that action at this time.
0 commit comments