* PageHistory::diffButtons
[lhc/web/wiklou.git] / includes / DefaultSettings.php
index 2b93afb..b45d271 100644 (file)
@@ -13,7 +13,7 @@
  * depends on it.
  *
  * Documentation is in the source and on:
- * http://www.mediawiki.org/wiki/Help:Configuration_settings
+ * http://www.mediawiki.org/wiki/Manual:Configuration_settings
  *
  */
 
@@ -170,16 +170,10 @@ $wgUploadBaseUrl    = "";
  *   $wgFileStore['deleted']['directory'] = '/var/wiki/private/deleted';
  *
  */
-// For deleted images, gererally were all versions of the image are discarded
 $wgFileStore = array();
 $wgFileStore['deleted']['directory'] = false;// Defaults to $wgUploadDirectory/deleted
 $wgFileStore['deleted']['url'] = null;       // Private
 $wgFileStore['deleted']['hash'] = 3;         // 3-level subdirectory split
-// For revisions of images marked as hidden
-// These are kept even if $wgSaveDeletedFiles is set to false
-$wgFileStore['hidden']['directory'] = false;// Defaults to $wgUploadDirectory/hidden
-$wgFileStore['hidden']['url'] = null;       // Private
-$wgFileStore['hidden']['hash'] = 3;         // 3-level subdirectory split
 
 /**#@+
  * File repository structures
@@ -600,7 +594,21 @@ $wgSharedDB = null;
 #   These and any other user-defined properties will be assigned to the mLBInfo member
 #   variable of the Database object.
 #
-# Leave at false to use the single-server variables above
+# Leave at false to use the single-server variables above. If you set this 
+# variable, the single-server variables will generally be ignored (except 
+# perhaps in some command-line scripts). 
+#
+# The first server listed in this array (with key 0) will be the master. The 
+# rest of the servers will be slaves. To prevent writes to your slaves due to 
+# accidental misconfiguration or MediaWiki bugs, set read_only=1 on all your 
+# slaves in my.cnf. You can set read_only mode at runtime using:
+#
+#     SET @@read_only=1;
+#
+# Since the effect of writing to a slave is so damaging and difficult to clean
+# up, we at Wikimedia set read_only=1 in my.cnf on all our DB servers, even 
+# our masters, and then set read_only=0 on masters at runtime. 
+#
 $wgDBservers           = false;
 
 /** How long to wait for a slave to catch up to the master */
@@ -798,6 +806,12 @@ $wgMsgCacheExpiry  = 86400;
  */
 $wgMaxMsgCacheEntrySize = 10000;
 
+/**
+ * Set to false if you are thorough system admin who always remembers to keep
+ * serialized files up to date to save few mtime calls.
+ */
+$wgCheckSerialized = true;
+
 # Whether to enable language variant conversion.
 $wgDisableLangConversion = false;
 
@@ -873,6 +887,8 @@ $wgMaxNameChars             = 255;  # Maximum number of bytes in username
 $wgMaxSigChars      = 255;  # Maximum number of Unicode characters in signature
 $wgMaxArticleSize      = 2048; # Maximum article size in kilobytes
 
+$wgMaxPPNodeCount = 1000000;  # A complexity limit on template expansion
+
 $wgExtraSubtitle       = '';
 $wgSiteSupportPage     = ''; # A page where you users can receive donations
 
@@ -1061,12 +1077,13 @@ $wgGroupPermissions['bot'  ]['bot']             = true;
 $wgGroupPermissions['bot'  ]['autoconfirmed']   = true;
 $wgGroupPermissions['bot'  ]['nominornewtalk']  = true;
 $wgGroupPermissions['bot'  ]['autopatrol']      = true;
+$wgGroupPermissions['bot'  ]['suppressredirect'] = true;
+$wgGroupPermissions['bot'  ]['apihighlimits']   = true;
 
 // Most extra permission abilities go to this group
 $wgGroupPermissions['sysop']['block']           = true;
 $wgGroupPermissions['sysop']['createaccount']   = true;
 $wgGroupPermissions['sysop']['delete']          = true;
-$wgGroupPermissions['sysop']['browsearchive']  = true; // can see the deleted page list
 $wgGroupPermissions['sysop']['deletedhistory']         = true; // can view deleted history entries, but not see or restore the text
 $wgGroupPermissions['sysop']['editinterface']   = true;
 $wgGroupPermissions['sysop']['editusercssjs']   = true;
@@ -1086,21 +1103,18 @@ $wgGroupPermissions['sysop']['unwatchedpages']  = true;
 $wgGroupPermissions['sysop']['autoconfirmed']   = true;
 $wgGroupPermissions['sysop']['upload_by_url']   = true;
 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
-$wgGroupPermissions['sysop']['deleterevision']  = true;
 $wgGroupPermissions['sysop']['blockemail']      = true;
-$wgGroupPermissions['sysop']['mergehistory']    = true;
+$wgGroupPermissions['sysop']['markbotedits']   = true;
+$wgGroupPermissions['sysop']['suppressredirect'] = true;
+$wgGroupPermissions['sysop']['apihighlimits']   = true;
+#$wgGroupPermissions['sysop']['mergehistory']    = true;
 
 // Permission to change users' group assignments
 $wgGroupPermissions['bureaucrat']['userrights'] = true;
 
-// To hide usernames
-$wgGroupPermissions['oversight']['hideuser'] = true;
-// To see hidden revs and unhide revs hidden from Sysops
-$wgGroupPermissions['oversight']['hiderevision'] = true;
-// For private log access
-$wgGroupPermissions['oversight']['oversight'] = true;
-
-$wgAllowLogDeletion = false;
+// Experimental permissions, not ready for production use
+//$wgGroupPermissions['sysop']['deleterevision'] = true;
+//$wgGroupPermissions['bureaucrat']['hiderevision'] = true;
 
 /**
  * The developer group is deprecated, but can be activated if need be
@@ -1229,7 +1243,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches don't keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '100';
+$wgStyleVersion = '102';
 
 
 # Server-side caching:
@@ -1347,6 +1361,11 @@ $wgInternalServer = $wgServer;
  */
 $wgSquidMaxage = 18000;
 
+/**
+ * Default maximum age for raw CSS/JS accesses
+ */
+$wgForcedRawSMaxage = 300;
+
 /**
  * List of proxy servers to purge on changes; default port is 80. Use IP addresses.
  *
@@ -1617,9 +1636,11 @@ $wgMediaHandlers = array(
        'image/png' => 'BitmapHandler',
        'image/gif' => 'BitmapHandler',
        'image/x-ms-bmp' => 'BmpHandler',
-       'image/svg+xml' => 'SvgHandler',
-       'image/svg' => 'SvgHandler',
-       'image/vnd.djvu' => 'DjVuHandler',
+       'image/svg+xml' => 'SvgHandler', // official
+       'image/svg' => 'SvgHandler', // compat
+       'image/vnd.djvu' => 'DjVuHandler', // official
+       'image/x.djvu' => 'DjVuHandler', // compat
+       'image/x-djvu' => 'DjVuHandler', // compat
 );
 
 
@@ -1867,7 +1888,13 @@ $wgAlwaysUseTidy = false;
 $wgTidyBin = 'tidy';
 $wgTidyConf = $IP.'/includes/tidy.conf';
 $wgTidyOpts = '';
-$wgTidyInternal = function_exists( 'tidy_load_config' );
+$wgTidyInternal = extension_loaded( 'tidy' );
+
+/**
+ * Put tidy warnings in HTML comments
+ * Only works for internal tidy.
+ */
+$wgDebugTidy = false;
 
 /** See list of skins and their symbolic names in languages/Language.php */
 $wgDefaultSkin = 'monobook';
@@ -1939,7 +1966,11 @@ $wgSkinExtensionFunctions = array();
  * Extension messages files
  * Associative array mapping extension name to the filename where messages can be found.
  * The file must create a variable called $messages.
- * When the messages are needed, the extension should call wfLoadMessagesFile()
+ * When the messages are needed, the extension should call wfLoadExtensionMessages().
+ *
+ * Example: 
+ *    $wgExtensionMessagesFiles['ConfirmEdit'] = dirname(__FILE__).'/ConfirmEdit.i18n.php';
+ *
  */
 $wgExtensionMessagesFiles = array();
 
@@ -2031,6 +2062,9 @@ $wgExternalDiffEngine = false;
 /** Use RC Patrolling to check for vandalism */
 $wgUseRCPatrol = true;
 
+/** Use new page patrolling to check new pages on special:Newpages */
+$wgUseNPPatrol = true;
+
 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
  * eg Recentchanges, Newpages. */
 $wgFeedLimit = 50;
@@ -2258,17 +2292,6 @@ $wgLogTypes = array( '',
        'import',
        'patrol',
        'merge',
-       'oversight',
-);
-
-/**
- * This restricts log access to those who have a certain right
- * Users without this will not see it in the option menu and can not view it
- * Restricted logs are not added to recent changes
- * Logs should remain non-transcludable
- */
-$wgLogRestrictions = array(
-       'oversight' => 'oversight'
 );
 
 /**
@@ -2288,7 +2311,6 @@ $wgLogNames = array(
        'import'  => 'importlogpage',
        'patrol'  => 'patrol-log-page',
        'merge'   => 'mergelog',
-       'oversight' => 'oversightlog',
 );
 
 /**
@@ -2308,7 +2330,6 @@ $wgLogHeaders = array(
        'import'  => 'importlogpagetext',
        'patrol'  => 'patrol-log-header',
        'merge'   => 'mergelogpagetext',
-       'oversight' => 'overlogpagetext',
 );
 
 /**
@@ -2318,29 +2339,23 @@ $wgLogHeaders = array(
  * Extensions with custom log types may add to this array.
  */
 $wgLogActions = array(
-       'block/block'        => 'blocklogentry',
-       'block/unblock'      => 'unblocklogentry',
-       'protect/protect'    => 'protectedarticle',
-       'protect/modify'     => 'modifiedarticleprotection',
-       'protect/unprotect'  => 'unprotectedarticle',
-       'rights/rights'      => 'rightslogentry',
-       'delete/delete'      => 'deletedarticle',
-       'delete/restore'     => 'undeletedarticle',
-       'delete/revision'    => 'revdelete-logentry',
-       'delete/event'           => 'logdelete-logentry',
-       'upload/upload'      => 'uploadedimage',
-       'upload/overwrite'       => 'overwroteimage',
-       'upload/revert'      => 'uploadedimage',
-       'move/move'          => '1movedto2',
-       'move/move_redir'    => '1movedto2_redir',
-       'import/upload'      => 'import-logentry-upload',
-       'import/interwiki'   => 'import-logentry-interwiki',
+       'block/block'       => 'blocklogentry',
+       'block/unblock'     => 'unblocklogentry',
+       'protect/protect'   => 'protectedarticle',
+       'protect/modify'    => 'modifiedarticleprotection',
+       'protect/unprotect' => 'unprotectedarticle',
+       'rights/rights'     => 'rightslogentry',
+       'delete/delete'     => 'deletedarticle',
+       'delete/restore'    => 'undeletedarticle',
+       'delete/revision'   => 'revdelete-logentry',
+       'upload/upload'     => 'uploadedimage',
+       'upload/overwrite'      => 'overwroteimage',
+       'upload/revert'     => 'uploadedimage',
+       'move/move'         => '1movedto2',
+       'move/move_redir'   => '1movedto2_redir',
+       'import/upload'     => 'import-logentry-upload',
+       'import/interwiki'  => 'import-logentry-interwiki',
        'merge/merge'        => 'pagemerge-logentry',
-       'oversight/revision' => 'revdelete-logentry',
-       'oversight/file'     => 'revdelete-logentry',
-       'oversight/event'    => 'logdelete-logentry',
-       'oversight/delete'   => 'suppressedarticle',
-       'oversight/block'        => 'blocklogentry',
 );
 
 /**
@@ -2790,3 +2805,19 @@ $wgDisableOutputCompression = false;
  */
 $wgSlaveLagWarning = 10;
 $wgSlaveLagCritical = 30;
+
+/**
+ * Parser configuration. Associative array with the following members:
+ *
+ *     class        The class name
+ * 
+ * The entire associative array will be passed through to the constructor as 
+ * the first parameter. Note that only Setup.php can use this variable -- 
+ * the configuration will change at runtime via $wgParser member functions, so 
+ * the contents of this variable will be out-of-date. The variable can only be 
+ * changed during LocalSettings.php, in particular, it can't be changed during 
+ * an extension setup function. 
+ */
+$wgParserConf = array( 
+       'class' => 'Parser',
+);