MediaWiki r34562 - Code Review

Jump to: navigation, search
Repository:MediaWiki
Revision:r34561‎ | r34562 (on ViewVC)‎ | r34563 >
Date:09:52, 10 May 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* Automatic edit summaries can be turned of with $wgUseAutomaticEditSummaries
Modified paths:

Diff [purge]

Index: trunk/phase3/includes/Article.php
===================================================================
--- trunk/phase3/includes/Article.php	(revision 34561)
+++ trunk/phase3/includes/Article.php	(revision 34562)
@@ -3314,6 +3314,8 @@
 	* @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: trunk/phase3/includes/DefaultSettings.php
===================================================================
--- trunk/phase3/includes/DefaultSettings.php	(revision 34561)
+++ trunk/phase3/includes/DefaultSettings.php	(revision 34562)
@@ -3202,3 +3202,11 @@
  * 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
Index: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES	(revision 34561)
+++ trunk/phase3/RELEASE-NOTES	(revision 34562)
@@ -37,7 +37,7 @@
   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 ===
 

Status & tagging log

  • 15:26, 12 September 2011 Meno25 (Talk | contribs) changed the status of r34562 [removed: ok added: old]
Personal tools
Namespaces
Variants
Views
Actions
Site
Support
Download
Development
Communication
Toolbox