* Automatic edit summaries can be turned of with $wgUseAutomaticEditSummaries
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 10 May 2008 09:52:51 +0000 (09:52 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 10 May 2008 09:52:51 +0000 (09:52 +0000)
RELEASE-NOTES
includes/Article.php
includes/DefaultSettings.php

index a1900ec..1135700 100644 (file)
@@ -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 ===
 
index d4aa897..1558efd 100644 (file)
@@ -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.
index 14b25a4..ff7803f 100644 (file)
@@ -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