Skip to content

Commit 6eedcab

Browse files
author
Alexander Gesinn
committed
fix deprecated WikiPage::doEditContent()
1 parent 0579470 commit 6eedcab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: SemanticDependencyUpdater.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public static function dummyEdit( $title ) {
172172
if ( $page ) { // prevent NPE when page not found
173173
$content = $page->getContent( Revision::RAW );
174174
$text = ContentHandler::getContentText( $content );
175-
$page->doEdit( $text,
175+
$page->doEditContent( ContentHandler::makeContent( $text, $page->getTitle() ),
176176
"[SemanticDependencyUpdater] Null edit." ); // since this is a null edit, the edit summary will be ignored.
177177
$page->doPurge(); // required since SMW 2.5.1
178178
}
@@ -204,7 +204,7 @@ function run() {
204204
if ( $page ) { // prevent NPE when page not found
205205
$content = $page->getContent( Revision::RAW );
206206
$text = ContentHandler::getContentText( $content );
207-
$page->doEdit( $text,
207+
$page->doEditContent( ContentHandler::makeContent( $text, $page->getTitle() ),
208208
"[SemanticDependencyUpdater] Null edit." ); // since this is a null edit, the edit summary will be ignored.
209209
$page->doPurge(); // required since SMW 2.5.1
210210
}

0 commit comments

Comments
 (0)