Follow-up r92220: changed autoblock handling to use PerformRetroactiveAutoblock hook...
[lhc/web/wiklou.git] / includes / DefaultSettings.php
index 158bb59..3ddddd7 100644 (file)
@@ -354,7 +354,7 @@ $wgUseInstantCommons = false;
  * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
  *
  * NOTE FOR WINDOWS USERS:
- * To enable EXIF functions, add the folloing lines to the
+ * To enable EXIF functions, add the following lines to the
  * "Windows extensions" section of php.ini:
  *
  * extension=extensions/php_mbstring.dll
@@ -618,6 +618,11 @@ $wgImageMagickTempDir = false;
  */
 $wgCustomConvertCommand = false;
 
+/**
+ * Some tests and extensions use exiv2 to manipulate the EXIF metadata in some image formats. 
+ */
+$wgExiv2Command = '/usr/bin/exiv2';
+
 /**
  * Scalable Vector Graphics (SVG) may be uploaded as images.
  * Since SVG support is not yet standard in browsers, it is
@@ -845,9 +850,6 @@ $wgXMLMimeTypes = array(
                'http://www.lysator.liu.se/~alla/dia/:diagram'  => 'application/x-dia-diagram',
                'http://www.w3.org/1999/xhtml:html'                             => 'text/html', // application/xhtml+xml?
                'html'                                                  => 'text/html', // application/xhtml+xml?
-               'http://www.opengis.net/kml/2.1:kml'                    => 'application/vnd.google-earth.kml+xml',
-               'http://www.opengis.net/kml/2.2:kml'                    => 'application/vnd.google-earth.kml+xml',
-               'kml'                                                                                   => 'application/vnd.google-earth.kml+xml',
 );
 
 /**
@@ -1531,7 +1533,7 @@ $wgSessionsInMemcached = false;
  * 'session_mysql.' Setting to null skips setting this entirely (which might be
  * useful if you're doing cross-application sessions, see bug 11381)
  */
-$wgSessionHandler = 'files';
+$wgSessionHandler = null;
 
 /** If enabled, will send MemCached debugging information to $wgDebugLogFile */
 $wgMemCachedDebug   = false;
@@ -1838,6 +1840,7 @@ $wgDummyLanguageCodes = array(
        'iu',
        'nb',
        'qqq',
+       'qqx',
        'roa-rup',
        'simple',
 );
@@ -2406,9 +2409,12 @@ $wgVectorShowVariantName = false;
 $wgEdititis = false;
 
 /**
- * Experimental better directionality support.
+ * Better directionality support (bug 6100 and related).
+ * Removed in 1.19, still kept here for LiquidThreads backwards compatibility.
+ *
+ * @deprecated since 1.19
  */
-$wgBetterDirectionality = false;
+$wgBetterDirectionality = true;
 
 
 /** @} */ # End of output format settings }
@@ -2514,6 +2520,25 @@ $wgLegacyJavaScriptGlobals = true;
  */
 $wgResourceLoaderMaxQueryLength = -1;
 
+/**
+ * If set to true, JavaScript modules loaded from wiki pages will be parsed prior
+ * to minification to validate it.
+ *
+ * Parse errors will result in a JS exception being thrown during module load,
+ * which avoids breaking other modules loaded in the same request.
+ */
+$wgResourceLoaderValidateJS = true;
+
+/**
+ * If set to true, statically-sourced (file-backed) JavaScript resources will
+ * be parsed for validity before being bundled up into ResourceLoader modules.
+ *
+ * This can be helpful for development by providing better error messages in
+ * default (non-debug) mode, but JavaScript parsing is slow and memory hungry
+ * and may fail on large pre-bundled frameworks.
+ */
+$wgResourceLoaderValidateStaticJS = false;
+
 /** @} */ # End of resource loader settings }
 
 
@@ -2779,6 +2804,7 @@ $wgUrlProtocols = array(
        'svn://',
        'git://',
        'mms://',
+       '//', // for protocol-relative URLs
 );
 
 /**
@@ -2831,8 +2857,9 @@ $wgAllowImageTag = false;
  * - $wgTidyBin should be set to the path of the binary and
  * - $wgTidyConf to the path of the configuration file.
  * - $wgTidyOpts can include any number of parameters.
- * - $wgTidyInternal controls the use of the PECL extension to use an in-
- *   process tidy library instead of spawning a separate program.
+ * - $wgTidyInternal controls the use of the PECL extension or the
+ *   libtidy (PHP >= 5) extension to use an in-process tidy library instead
+ *   of spawning a separate program.
  *   Normally you shouldn't need to override the setting except for
  *   debugging. To install, use 'pear install tidy' and add a line
  *   'extension=tidy.so' to php.ini.
@@ -3077,7 +3104,7 @@ $wgDefaultUserOptions = array(
        'numberheadings'          => 0,
        'previewonfirst'          => 0,
        'previewontop'            => 1,
-       'quickbar'                => 1,
+       'quickbar'                => 5,
        'rcdays'                  => 7,
        'rclimit'                 => 50,
        'rememberpassword'        => 0,
@@ -3498,7 +3525,7 @@ $wgAutoConfirmCount = 0;
 /**
  * Automatically add a usergroup to any user who matches certain conditions.
  * The format is
- *   array( '&' or '|' or '^', cond1, cond2, ... )
+ *   array( '&' or '|' or '^' or '!', cond1, cond2, ... )
  * where cond1, cond2, ... are themselves conditions; *OR*
  *   APCOND_EMAILCONFIRMED, *OR*
  *   array( APCOND_EMAILCONFIRMED ), *OR*
@@ -3509,6 +3536,7 @@ $wgAutoConfirmCount = 0;
  *   array( APCOND_IPINRANGE, range ), *OR*
  *   array( APCOND_AGE_FROM_EDIT, seconds since first edit ), *OR*
  *   array( APCOND_BLOCKED ), *OR*
+ *   array( APCOND_ISBOT ), *OR*
  *   similar constructs defined by extensions.
  *
  * If $wgEmailAuthentication is off, APCOND_EMAILCONFIRMED will be true for any
@@ -3540,6 +3568,12 @@ $wgAutopromoteOnce = array(
        'onView' => array()
 );
 
+/*
+ * Put user rights log entries for autopromotion in recent changes?
+ * @since 1.18
+ */
+$wgAutopromoteOnceLogInRC = true;
+
 /**
  * $wgAddGroups and $wgRemoveGroups can be used to give finer control over who
  * can assign which groups at Special:Userrights.  Example configuration:
@@ -4369,6 +4403,16 @@ $wgFeedDiffCutoff = 32768;
  */
 $wgOverrideSiteFeed = array();
 
+/**
+ * Available feeds objects
+ * Should probably only be defined when a page is syndicated ie when
+ * $wgOut->isSyndicated() is true
+ */
+$wgFeedClasses = array(
+       'rss' => 'RSSFeed',
+       'atom' => 'AtomFeed',
+);
+
 /**
  * Which feed types should we provide by default?  This can include 'rss',
  * 'atom', neither, or both.
@@ -4731,6 +4775,9 @@ $wgCategoryPagingLimit = 200;
  *
  * After you change this, you must run maintenance/updateCollation.php to fix
  * the sort keys in the database.
+ *
+ * Extensions can define there own collations by subclassing Collation
+ * and using the class name as the value of this variable.
  */
 $wgCategoryCollation = 'uppercase';
 
@@ -4842,34 +4889,34 @@ $wgLogHeaders = array(
  * Extensions with custom log types may add to this array.
  */
 $wgLogActions = array(
-       'block/block'       => 'blocklogentry',
-       'block/unblock'     => 'unblocklogentry',
-       'block/reblock'     => 'reblock-logentry',
-       'protect/protect'   => 'protectedarticle',
-       'protect/modify'    => 'modifiedarticleprotection',
-       'protect/unprotect' => 'unprotectedarticle',
-       'protect/move_prot' => 'movedarticleprotection',
-       'rights/rights'     => 'rightslogentry',
-       'rights/disable'    => 'disableaccount-logentry',
-       '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',
-       'merge/merge'       => 'pagemerge-logentry',
-       'suppress/revision' => 'revdelete-logentry',
-       'suppress/file'     => 'revdelete-logentry',
-       'suppress/event'    => 'logdelete-logentry',
-       'suppress/delete'   => 'suppressedarticle',
-       'suppress/block'    => 'blocklogentry',
-       'suppress/reblock'  => 'reblock-logentry',
-       'patrol/patrol'     => 'patrol-log-line',
+       'block/block'        => 'blocklogentry',
+       'block/unblock'      => 'unblocklogentry',
+       'block/reblock'      => 'reblock-logentry',
+       'protect/protect'    => 'protectedarticle',
+       'protect/modify'     => 'modifiedarticleprotection',
+       'protect/unprotect'  => 'unprotectedarticle',
+       'protect/move_prot'  => 'movedarticleprotection',
+       'rights/rights'      => 'rightslogentry',
+       'rights/autopromote' => 'rightslogentry-autopromote',
+       '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',
+       'merge/merge'        => 'pagemerge-logentry',
+       'suppress/revision'  => 'revdelete-logentry',
+       'suppress/file'      => 'revdelete-logentry',
+       'suppress/event'     => 'logdelete-logentry',
+       'suppress/delete'    => 'suppressedarticle',
+       'suppress/block'     => 'blocklogentry',
+       'suppress/reblock'   => 'reblock-logentry',
+       'patrol/patrol'      => 'patrol-log-line',
 );
 
 /**
@@ -4963,6 +5010,7 @@ $wgSpecialPageGroups = array(
        'Preferences'               => 'users',
        'ChangePassword'            => 'users',
        'DeletedContributions'      => 'users',
+       'PasswordReset'             => 'users',
 
        'Mostlinked'                => 'highuse',
        'Mostlinkedcategories'      => 'highuse',
@@ -5033,6 +5081,9 @@ $wgMaxRedirectLinksRetrieved = 500;
  * Array of allowed values for the title=foo&action=<action> parameter. Syntax is:
  *     'foo' => 'ClassName'    Load the specified class which subclasses Action
  *     'foo' => true           Load the class FooAction which subclasses Action
+ *                             If something is specified in the getActionOverrides()
+ *                             of the relevant Page object it will be used
+ *                             instead of the default class.
  *     'foo' => false          The action is disabled; show an error message
  * Unsetting core actions will probably cause things to complain loudly.
  */
@@ -5042,7 +5093,9 @@ $wgActions = array(
        'info' => true,
        'markpatrolled' => true,
        'purge' => true,
+       'revert' => true,
        'revisiondelete' => true,
+       'rollback' => true,
        'unwatch' => true,
        'watch' => true,
 );
@@ -5448,6 +5501,19 @@ $wgSeleniumConfigFile = null;
 $wgDBtestuser = ''; //db user that has permission to create and drop the test databases only
 $wgDBtestpassword = '';
 
+/**
+ * Whether or not to use the AJAX categories system.
+ */
+$wgUseAJAXCategories = false;
+
+/**
+ * Only enable AJAXCategories on configured namespaces. Default is all.
+ *
+ * Example:
+ *   $wgAJAXCategoriesNamespaces = array( NS_MAIN, NS_PROJECT );
+ */
+$wgAJAXCategoriesNamespaces = array();
+
 /**
  * For really cool vim folding this needs to be at the end:
  * vim: foldmarker=@{,@} foldmethod=marker