Add $wgAllowUserCssPrefs option to disable CSS-based preferences. These are injected...
[lhc/web/wiklou.git] / includes / DefaultSettings.php
index c67bd26..8f47cd1 100644 (file)
@@ -33,7 +33,7 @@ if ( !defined( 'MW_PHP4' ) ) {
 }
 
 /** MediaWiki version number */
-$wgVersion = '1.16alpha';
+$wgVersion = '1.17alpha';
 
 /** Name of the site. It must be changed in LocalSettings.php */
 $wgSitename         = 'MediaWiki';
@@ -793,7 +793,7 @@ $wgUseMemCached     = false;
 $wgMemCachedDebug   = false; ///< Will be set to false in Setup.php, if the server isn't working
 $wgMemCachedServers = array( '127.0.0.1:11000' );
 $wgMemCachedPersistent = false;
-$wgMemCachedTimeout = 100000; //Server connection timeout in microseconds
+$wgMemCachedTimeout = 100000; //Data timeout in microseconds
 /**@}*/
 
 /**
@@ -951,12 +951,12 @@ $wgHtml5Version = null;
  * Enabled RDFa attributes for use in wikitext.
  * NOTE: Interaction with HTML5 is somewhat underspecified.
  */
-$wgAllowRdfaAttributes = true;
+$wgAllowRdfaAttributes = false;
 
 /**
  * Enabled HTML5 microdata attributes for use in wikitext, if $wgHtml5 is also true.
  */
-$wgAllowMicrodataAttributes = true;
+$wgAllowMicrodataAttributes = false;
 
 /**
  * Should we try to make our HTML output well-formed XML?  If set to false,
@@ -1221,6 +1221,16 @@ $wgDebugLogGroups       = array();
  */
 $wgShowDebug            = false;
 
+/**
+ * Prefix debug messages with relative timestamp. Very-poor man's profiler.
+ */
+$wgDebugTimestamps = false;
+
+/**
+ * Print HTTP headers for every request in the debug information.
+ */
+$wgDebugPrintHttpHeaders = true;
+
 /**
  * Show the contents of $wgHooks in Special:Version
  */
@@ -1270,7 +1280,7 @@ $wgDevelopmentWarnings = false;
 $wgUseCategoryBrowser   = false;
 
 /**
- * Keep parsed pages in a cache (objectcache table, turck, or memcached)
+ * Keep parsed pages in a cache (objectcache table or memcached)
  * to speed up output of the same page viewed by another user with the
  * same options.
  *
@@ -1334,6 +1344,15 @@ $wgBlockCIDRLimit = array(
        'IPv6' => 64, # 2^64 = ~1.8x10^19 addresses
 );
 
+/**
+ * If true, blocked users will not be allowed to login. When using this with
+ * a public wiki, the effect of logging out blocked users may actually be
+ * avers: unless the user's address is also blocked (e.g. auto-block),
+ * logging the user out will again allow reading and editing, just as for
+ * anonymous visitors.
+ */
+$wgBlockDisablesLogin = false; #
+
 # Pages anonymous user may see as an array, e.g.:
 # array ( "Main Page", "Wikipedia:Help");
 # Special:Userlogin and Special:Resetpass are always whitelisted.
@@ -1667,7 +1686,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches do not keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '264';
+$wgStyleVersion = '268';
 
 
 # Server-side caching:
@@ -1815,11 +1834,6 @@ $wgSquidServers = array();
  */
 $wgSquidServersNoPurge = array();
 
-/**
- * Default character limit for squid purge responses
- */
-$wgSquidResponseLimit = 250;
-
 /** Maximum number of titles to purge in any one client operation */
 $wgMaxSquidPurgeTitles = 400;
 
@@ -1992,8 +2006,6 @@ $wgUDPProfilerPort = '3811';
 $wgDebugProfiling = false;
 /** Output debug message on every wfProfileIn/wfProfileOut */
 $wgDebugFunctionEntry = 0;
-/** Lots of debugging output from SquidUpdate.php */
-$wgDebugSquid = false;
 
 /*
  * Destination for wfIncrStats() data...
@@ -2062,6 +2074,11 @@ $wgEnableMWSuggest = false;
  */
 $wgEnableOpenSearchSuggest = true;
 
+/**
+ * Expiry time for search suggestion responses
+ */
+$wgSearchSuggestCacheExpiry = 1200;
+
 /**
  *  Template for internal MediaWiki suggestion engine, defaults to API action=opensearch
  *
@@ -2469,16 +2486,6 @@ $wgRC2UDPOmitBots = false;
  */
 $wgEnableNewpagesUserFilter = true;
 
-/**
- * Whether to use metadata edition
- * This will put categories, language links and allowed templates in a separate text box
- * while editing pages
- * EXPERIMENTAL
- */
-$wgUseMetadataEdit = false;
-/** Full name (including namespace) of the page containing templates names that will be allowed as metadata */
-$wgMetadataWhitelist = '';
-
 #
 # Copyright and credits settings
 #
@@ -2709,72 +2716,72 @@ $wgHandheldForIPhone = false;
  *
  */
 $wgDefaultUserOptions = array(
-       'quickbar'                => 1,
-       'underline'               => 2,
+       'ccmeonemails'            => 0,
        'cols'                    => 80,
-       'rows'                    => 25,
-       'searchlimit'             => 20,
-       'contextlines'            => 5,
        'contextchars'            => 50,
+       'contextlines'            => 5,
+       'date'                    => 'default',
+       'diffonly'                => 0,
+       'disablemail'             => 0,
        'disablesuggest'          => 0,
-       'skin'                    => false,
-       'math'                    => 1,
-       'usenewrc'                => 0,
-       'rcdays'                  => 7,
-       'rclimit'                 => 50,
-       'wllimit'                 => 250,
-       'hideminor'               => 0,
-       'hidepatrolled'           => 0,
-       'newpageshidepatrolled'   => 0,
-       'highlightbroken'         => 1,
-       'stubthreshold'           => 0,
-       'previewontop'            => 1,
-       'previewonfirst'          => 0,
+       'editfont'                => 'default',
+       'editondblclick'          => 0,
        'editsection'             => 1,
        'editsectiononrightclick' => 0,
-       'editondblclick'          => 0,
        'editwidth'               => 0,
-       'showtoc'                 => 1,
-       'showtoolbar'             => 1,
-       'minordefault'            => 0,
-       'date'                    => 'default',
-       'imagesize'               => 2,
-       'thumbsize'               => 2,
-       'rememberpassword'        => 0,
-       'nocache'                 => 0,
-       'diffonly'                => 0,
-       'showhiddencats'          => 0,
-       'norollbackdiff'          => 0,
-       'enotifwatchlistpages'    => 0,
-       'enotifusertalkpages'     => 1,
        'enotifminoredits'        => 0,
        'enotifrevealaddr'        => 0,
-       'shownumberswatching'     => 1,
-       'fancysig'                => 0,
-       'externaleditor'          => 0,
+       'enotifusertalkpages'     => 1,
+       'enotifwatchlistpages'    => 0,
+       'extendwatchlist'         => 0,
        'externaldiff'            => 0,
+       'externaleditor'          => 0,
+       'fancysig'                => 0,
        'forceeditsummary'        => 0,
-       'showjumplinks'           => 1,
+       'gender'                  => 'unknown',
+       'hideminor'               => 0,
+       'hidepatrolled'           => 0,
+       'highlightbroken'         => 1,
+       'imagesize'               => 2,
        'justify'                 => 0,
+       'math'                    => 1,
+       'minordefault'            => 0,
+       'newpageshidepatrolled'   => 0,
+       'nocache'                 => 0,
+       'noconvertlink'           => 0,
+       'norollbackdiff'          => 0,
        'numberheadings'          => 0,
+       'previewonfirst'          => 0,
+       'previewontop'            => 1,
+       'quickbar'                => 1,
+       'rcdays'                  => 7,
+       'rclimit'                 => 50,
+       'rememberpassword'        => 0,
+       'rows'                    => 25,
+       'searchlimit'             => 20,
+       'showhiddencats'          => 0,
+       'showjumplinks'           => 1,
+       'shownumberswatching'     => 1,
+       'showtoc'                 => 1,
+       'showtoolbar'             => 1,
+       'skin'                    => false,
+       'stubthreshold'           => 0,
+       'thumbsize'               => 2,
+       'underline'               => 2,
        'uselivepreview'          => 0,
+       'usenewrc'                => 0,
+       'watchcreations'          => 0,
+       'watchdefault'            => 0,
+       'watchdeletion'           => 0,
        'watchlistdays'           => 3.0,
-       'extendwatchlist'         => 0,
-       'watchlisthideminor'      => 0,
-       'watchlisthidebots'       => 0,
-       'watchlisthideown'        => 0,
        'watchlisthideanons'      => 0,
+       'watchlisthidebots'       => 0,
        'watchlisthideliu'        => 0,
+       'watchlisthideminor'      => 0,
+       'watchlisthideown'        => 0,
        'watchlisthidepatrolled'  => 0,
-       'watchcreations'          => 0,
-       'watchdefault'            => 0,
        'watchmoves'              => 0,
-       'watchdeletion'           => 0,
-       'noconvertlink'           => 0,
-       'gender'                  => 'unknown',
-       'ccmeonemails'            => 0,
-       'disablemail'             => 0,
-       'editfont'                => 'default',
+       'wllimit'                 => 250,
 );
 
 /**
@@ -2898,6 +2905,13 @@ $wgAllowUserJs = false;
  */
 $wgAllowUserCss = false;
 
+/**
+ * Allow user-preferences implemented in CSS?
+ * This allows users to customise the site appearance to a greater
+ * degree; disabling it will improve page load times.
+ */
+$wgAllowUserCssPrefs = true;
+
 /** Use the site's Javascript page? */
 $wgUseSiteJs = true;
 
@@ -3032,6 +3046,18 @@ $wgThumbLimits = array(
  */
 $wgThumbUpright = 0.75;
 
+/**
+ * Default parameters for the <gallery> tag
+ */
+
+$wgGalleryOptions = array (
+       'imagesPerRow' => 4, // Default number of images per-row in the gallery
+       'imageWidth' => 120, // Width of the cells containing images in galleries (in "px")
+       'imageHeight' => 120, // Height of the cells containing images in galleries (in "px")
+       'captionLength' => 20, // Length of caption to truncate (in characters)
+       'showBytes' => true, // Show the filesize in bytes in categories
+);
+
 /**
  *  On  category pages, show thumbnail gallery for images belonging to that
  * category instead of listing them as articles.
@@ -3289,6 +3315,7 @@ $wgLogActions = array(
        'suppress/delete'   => 'suppressedarticle',
        'suppress/block'        => 'blocklogentry',
        'suppress/reblock'  => 'reblock-logentry',
+       'patrol/patrol'         => 'patrol-log-line',
 );
 
 /**
@@ -3697,14 +3724,6 @@ $wgTrustedMediaFormats= array(
  */
 $wgAllowSpecialInclusion = true;
 
-/**
- * 'curl' to use curl or 'php' to use pure php (for which
- * allow_url_fopen needs to be enabled).  If left as false,
- * HttpFunctions will attempt to use curl if it is available.  The use
- * of curl is strongly encouraged.
- */
-$wgHTTPEngine = false;
-
 /**
  * Timeout for HTTP requests done internally
  */
@@ -4140,12 +4159,15 @@ $wgEdititis = false;
 $wgUniversalEditButton = true;
 
 /**
- * Allow id's that don't conform to HTML4 backward compatibility requirements.
- * This is purely experimental, has multiple known flaws, and will likely be
- * renamed and reconcepted based on HTML5 in the future, so should not be used
- * except for testing.
+ * Should we allow a broader set of characters in id attributes, per HTML5?  If
+ * not, use only HTML 4-compatible IDs.  This option is for testing -- when the
+ * functionality is ready, it will be on by default with no option.
+ *
+ * Currently this appears to work fine in Chrome 4 and 5, Firefox 3.5 and 3.6, IE6
+ * and 8, and Opera 10.50, but it fails in Opera 10.10: Unicode IDs don't seem
+ * to work as anchors.  So not quite ready for general use yet.
  */
-$wgEnforceHtmlIds = true;
+$wgExperimentalHtmlIds = false;
 
 /**
  * Search form behavior
@@ -4329,10 +4351,3 @@ $wgUploadMaintenance = false;
  */
 $wgOldChangeTagsIndex = false;
 
-/**
- * Set of loader.js files to setup dynamic loading of javascript libraries using mwEmbed
- *
- * Extensions can add mwEmbed modules via adding paths to their loader.js to
- * $wgExtensionJavascriptLoader[] = path/to/loader.js
- */
-$wgExtensionJavascriptLoader = array();