Do not use doQuickEditContent.

- Fix: The special page and the maintenance script did not work in MW 1.28.

Closes #24.
This commit is contained in:
Daniel Kraus
2017-02-16 06:25:46 +01:00
parent 464aac0ccd
commit 36bf1fc384

View File

@ -220,11 +220,12 @@ class Extension {
$newText = self::parseContent($title, $text);
if ( $text != $newText ) {
$content = $content->getContentHandler()->unserializeContent( $newText );
$page->doQuickEditContent(
$page->doEditContent(
$content,
$context->getUser(),
"Links to existing pages added by LinkTitles bot.", // TODO: i18n
true // minor modification
EDIT_MINOR | EDIT_FORCE_BOT,
false, // baseRevId
$context->getUser()
);
};
return true;