From: Niklas Laxström Date: Sat, 10 May 2008 09:52:51 +0000 (+0000) Subject: * Automatic edit summaries can be turned of with $wgUseAutomaticEditSummaries X-Git-Tag: 1.31.0-rc.0~47749 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=0bc80c79847aa153d965c4dfaac2498a8b8e87c3;p=lhc%2Fweb%2Fwiklou.git * Automatic edit summaries can be turned of with $wgUseAutomaticEditSummaries --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a1900ec8b6..1135700f2f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -37,7 +37,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN you to use a shared database with a different prefix. Or you can now use a local database and use prefixes to separate wiki and the shared tables. And the new $wgSharedTables variable allows you to specify a list of tables to share. - +* Automatic edit summaries can be turned of with $wgUseAutomaticEditSummaries === New features in 1.13 === diff --git a/includes/Article.php b/includes/Article.php index d4aa897f65..1558efdcbc 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -3314,6 +3314,8 @@ class Article { * @return string An appropriate autosummary, or an empty string. */ public static function getAutosummary( $oldtext, $newtext, $flags ) { + global $wgUseAutomaticEditSummaries; + if ( !$wgUseAutomaticEditSummaries ) return ''; # This code is UGLY UGLY UGLY. # Somebody PLEASE come up with a more elegant way to do it. diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 14b25a4bb1..ff7803fddd 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -3202,3 +3202,11 @@ $wgExpensiveParserFunctionLimit = 100; * if one is to be generated for all namespaces. */ $wgSitemapNamespaces = false; + + +/** + * If user doesn't specify any edit summary when making a an edit, + * MediaWiki will try to automatically create one. This feature can + * be disabled by setting this variable false. + */ +$wgUseAutomaticEditSummaries = true; \ No newline at end of file