diff --git a/NEWS b/NEWS index 0e1ed8e..b36769f 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,13 @@ +Version 4.0.8 (2017-02-16) +------------------------------------------------------------------------ + +- Fix: Do not link inside ... tags. +- Fix: The special page and the maintenance script did not work in MW 1.28. +- Fix: The special page did not work. + +* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + + Version 4.0.7 (2017-01-02) ------------------------------------------------------------------------ diff --git a/extension.json b/extension.json index da708e9..a39faee 100644 --- a/extension.json +++ b/extension.json @@ -7,7 +7,7 @@ ], "type": "parserhook", "url": "https://www.mediawiki.org/wiki/Extension:LinkTitles", - "version": "4.0.7", + "version": "4.0.8", "license-name": "GPL-2.0+", "descriptionmsg": "linktitles-desc", "requires": { diff --git a/gh-pages b/gh-pages index 933a842..2dec0ce 160000 --- a/gh-pages +++ b/gh-pages @@ -1 +1 @@ -Subproject commit 933a842d56a8c4a7f956751ebd31deaff57361de +Subproject commit 2dec0ce8a6864c2c1169710fe206175c4c58b940 diff --git a/includes/LinkTitles_Extension.php b/includes/LinkTitles_Extension.php index b95c77b..bf509b9 100644 --- a/includes/LinkTitles_Extension.php +++ b/includes/LinkTitles_Extension.php @@ -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; @@ -471,6 +472,7 @@ private static function BuildDelimiters() { '.*?<.nowiki>|.*?<\/code>|' . // nowiki/code '
.*?<\/pre>|.*?<\/html>|' .      // pre/html
 			'