mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 09:49:31 +02:00
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:
@ -220,11 +220,12 @@ class Extension {
|
|||||||
$newText = self::parseContent($title, $text);
|
$newText = self::parseContent($title, $text);
|
||||||
if ( $text != $newText ) {
|
if ( $text != $newText ) {
|
||||||
$content = $content->getContentHandler()->unserializeContent( $newText );
|
$content = $content->getContentHandler()->unserializeContent( $newText );
|
||||||
$page->doQuickEditContent(
|
$page->doEditContent(
|
||||||
$content,
|
$content,
|
||||||
$context->getUser(),
|
|
||||||
"Links to existing pages added by LinkTitles bot.", // TODO: i18n
|
"Links to existing pages added by LinkTitles bot.", // TODO: i18n
|
||||||
true // minor modification
|
EDIT_MINOR | EDIT_FORCE_BOT,
|
||||||
|
false, // baseRevId
|
||||||
|
$context->getUser()
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user