Modified Special:Categories to subclass SpecialPage
[lhc/web/wiklou.git] / includes / DefaultSettings.php
index b326067..7898429 100644 (file)
@@ -281,17 +281,14 @@ $wgAllowImageMoving = true;
 $wgIllegalFileChars = ":";
 
 /**
- * New file storage paths; currently used only for deleted files.
- * Set it like this:
- *
- *   $wgFileStore['deleted']['directory'] = '/var/wiki/private/deleted';
+ * @deprecated use $wgDeletedDirectory
  */
 $wgFileStore = array();
-/** @cond file_level_code */
-$wgFileStore['deleted']['directory'] = false; //  Defaults to $wgUploadDirectory/deleted
-$wgFileStore['deleted']['url'] = null;        //  Private
-$wgFileStore['deleted']['hash'] = 3;          //  3-level subdirectory split
-/** @endcond */
+
+/**
+ * What directory to place deleted uploads in
+ */
+$wgDeletedDirectory = false; //  Defaults to $wgUploadDirectory/deleted
 
 /**
  * Set this to true if you use img_auth and want the user to see details on why access failed.
@@ -342,9 +339,11 @@ $wgImgAuthPublicTest = true;
  *
  * These settings describe a foreign MediaWiki installation. They are optional, and will be ignored
  * for local repositories:
- *   - descBaseUrl       URL of image description pages, e.g. http://en.wikipedia.org/wiki/Image:
+ *   - descBaseUrl       URL of image description pages, e.g. http://en.wikipedia.org/wiki/File:
  *   - scriptDirUrl      URL of the MediaWiki installation, equivalent to $wgScriptPath, e.g.
- *                      http://en.wikipedia.org/w
+ *                       http://en.wikipedia.org/w
+ *   - scriptExtension   Script extension of the MediaWiki installation, equivalent to 
+ *                       $wgScriptExtension, e.g. .php5 defaults to .php
  *
  *   - articleUrl        Equivalent to $wgArticlePath, e.g. http://en.wikipedia.org/wiki/$1
  *   - fetchDescription  Fetch the text of the remote file description page. Equivalent to
@@ -400,7 +399,7 @@ $wgRemoteUploads = false;
  * Uploads to this wiki will NOT be put there - they will be put into
  * $wgUploadDirectory.
  * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
- * no file of the given name is found in the local repository (for [[Image:..]],
+ * no file of the given name is found in the local repository (for [[File:..]],
  * [[Media:..]] links). Thumbnails will also be looked for and generated in this
  * directory.
  *
@@ -426,6 +425,11 @@ $wgCacheSharedUploads = true;
 * The timeout for copy uploads is set by $wgHTTPTimeout.
 */
 $wgAllowCopyUploads = false;
+/**
+ * Allow asynchronous copy uploads.
+ * This feature is experimental.
+ */
+$wgAllowAsyncCopyUploads = false;
 
 /**
  * Max size for uploads, in bytes. Applies to all uploads.
@@ -437,12 +441,16 @@ $wgMaxUploadSize = 1024*1024*100; # 100MB
  * Useful if you want to use a shared repository by default
  * without disabling local uploads (use $wgEnableUploads = false for that)
  * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
- *
- * This also affects images inline images that do not exist. In that case the URL will get
- * (?|&)wpDestFile=<filename> appended to it as appropriate.
  */
 $wgUploadNavigationUrl = false;
 
+/**
+ * Point the upload link for missing files to an external URL, as with
+ * $wgUploadNavigationUrl. The URL will get (?|&)wpDestFile=<filename> 
+ * appended to it as appropriate.
+ */
+$wgUploadMissingFileUrl = false;
+
 /**
  * Give a path here to use thumb.php for thumbnail generation on client request, instead of
  * generating them on render and outputting a static URL. This is necessary if some of your
@@ -483,7 +491,7 @@ $wgHashedSharedUploadDirectory = true;
  *
  * Please specify the namespace, as in the example below.
  */
-$wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/Image:";
+$wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/File:";
 
 /**
  * This is the list of preferred extensions for uploading files. Uploading files
@@ -520,6 +528,9 @@ $wgMimeTypeBlacklist = array(
        # A ZIP file may be a valid Java archive containing an applet which exploits the
        # same-origin policy to steal cookies
        'application/zip',
+       # MS Office OpenXML and other Open Package Conventions files are zip files
+       # and thus blacklisted just as other zip files
+       'application/x-opc+zip',
 );
 
 /** This is a flag to determine whether or not to check file extensions on upload. */
@@ -537,7 +548,7 @@ $wgUploadSizeWarning = false;
 /**
  * list of trusted media-types and mime types.
  * Use the MEDIATYPE_xxx constants to represent media types.
- * This list is used by Image::isSafeFile
+ * This list is used by File::isSafeFile
  *
  * Types not listed here will have a warning about unsafe content
  * displayed on the images description page. It would also be possible
@@ -559,7 +570,7 @@ $wgTrustedMediaFormats = array(
  */
 $wgMediaHandlers = array(
        'image/jpeg' => 'BitmapHandler',
-       'image/png' => 'BitmapHandler',
+       'image/png' => 'PNGHandler',
        'image/gif' => 'GIFHandler',
        'image/tiff' => 'TiffHandler',
        'image/x-ms-bmp' => 'BmpHandler',
@@ -1120,6 +1131,14 @@ $wgDBprefix         = '';
 /** MySQL table options to use during installation or update */
 $wgDBTableOptions   = 'ENGINE=InnoDB';
 
+/**
+ * SQL Mode - default is turning off all modes, including strict, if set.
+ * null can be used to skip the setting for performance reasons and assume 
+ * DBA has done his best job.
+ * String override can be used for some additional fun :-)
+ */
+$wgSQLMode = ''; 
+
 /** Mediawiki schema */
 $wgDBmwschema       = 'mediawiki';
 /** Tsearch2 schema */
@@ -1408,7 +1427,7 @@ $wgCacheDirectory = false;
  *   - CACHE_NONE:       Do not cache
  *   - CACHE_DB:         Store cache objects in the DB
  *   - CACHE_MEMCACHED:  MemCached, must specify servers in $wgMemCacheServers
- *   - CACHE_ACCEL:      eAccelerator
+ *   - CACHE_ACCEL:      eAccelerator, APC, XCache or WinCache
  *   - CACHE_DBA:        Use PHP's DBA extension to store in a DBM-style 
  *                       database. This is slow, and is not recommended for 
  *                       anything other than debugging.
@@ -1459,9 +1478,6 @@ $wgSessionsInMemcached = false;
  */
 $wgSessionHandler = 'files';
 
-/** @deprecated Does nothing */
-$wgUseMemCached     = false;
-
 /** If enabled, will send MemCached debugging information to $wgDebugLogFile */
 $wgMemCachedDebug   = false;
 
@@ -1492,6 +1508,13 @@ $wgUseLocalMessageCache = false;
  */
 $wgLocalMessageCacheSerialized = true;
 
+/**
+ * Instead of caching everything, keep track which messages are requested and
+ * load only most used messages. This only makes sense if there is lots of
+ * interface messages customised in the wiki (like hundreds in many languages).
+ */
+$wgAdaptiveMessageCache = false;
+
 /**
  * Localisation cache configuration. Associative array with keys:
  *     class:       The class to use. May be overridden by extensions.
@@ -1537,7 +1560,7 @@ $wgCacheEpoch = '20030516000000';
  * to ensure that client-side caches do not keep obsolete copies of global
  * styles.
  */
-$wgStyleVersion = '291';
+$wgStyleVersion = '300';
 
 /**
  * This will cache static pages for non-logged-in users to reduce
@@ -1766,6 +1789,18 @@ $wgFixArabicUnicode = true;
  */
 $wgFixMalayalamUnicode = true;
 
+/**
+ * Set this to always convert certain Unicode sequences to modern ones
+ * regardless of the content language. This has a small performance
+ * impact.
+ *
+ * See $wgFixArabicUnicode and $wgFixMalayalamUnicode for conversion
+ * details.
+ *
+ * @since 1.17
+ */
+$wgAllUnicodeFixes = false;
+
 /**
  * Set this to eg 'ISO-8859-1' to perform character set conversion when 
  * loading old revisions not marked with "utf-8" flag. Use this when 
@@ -1868,20 +1903,6 @@ $wgMsgCacheExpiry        = 86400;
  */
 $wgMaxMsgCacheEntrySize = 10000;
 
-/**
- * If true, serialized versions of the messages arrays will be
- * read from the 'serialized' subdirectory if they are present.
- * Set to false to always use the Messages files, regardless of
- * whether they are up to date or not.
- */
-$wgEnableSerializedMessages = true;
-
-/**
- * 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;
 
@@ -1929,15 +1950,6 @@ $wgVariantArticlePath = false;
  */
 $wgLoginLanguageSelector = false;
 
-/**
- * Whether to use zhdaemon to perform Chinese text processing
- * zhdaemon is under developement, so normally you don't want to
- * use it unless for testing.
- */
-$wgUseZhdaemon = false;
-$wgZhdaemonHost="localhost";
-$wgZhdaemonPort=2004;
-
 /**
  * When translating messages with wfMsg(), it is not always clear what should
  * be considered UI messages and what should be content messages.
@@ -2020,10 +2032,9 @@ $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
 
 /**
- * Should we output an HTML5 doctype?  This mode is still experimental, but
- * all indications are that it should be usable, so it's enabled by default.
- * If all goes well, it will be removed and become always true before the 1.16
- * release.
+ * Should we output an HTML5 doctype?  If false, use XHTML 1.0 Transitional
+ * instead, and disable HTML5 features.  This may eventually be removed and set
+ * to always true.
  */
 $wgHtml5 = true;
 
@@ -2106,7 +2117,7 @@ $wgValidateAllHtml = false;
 /**
  * Default skin, for new users and anonymous visitors. Registered users may
  * change this to any one of the other available skins in their preferences.
- * This have to be completely lowercase; see the "skins" directory for the list
+ * This has to be completely lowercase; see the "skins" directory for the list
  * of available skins.
  */
 $wgDefaultSkin = 'vector';
@@ -2226,7 +2237,7 @@ $wgDisableOutputCompression = false;
  * 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.
  */
-$wgExperimentalHtmlIds = false;
+$wgExperimentalHtmlIds = true;
 
 /**
  * Search form behavior for Vector skin only
@@ -2260,6 +2271,12 @@ $wgVectorExtraStyles = null;
  */
 $wgEdititis = false;
 
+/**
+ * Experimental better directionality support.
+ */
+$wgBetterDirectionality = false;
+
+
 /** @} */ # End of output format settings }
 
 /*************************************************************************//**
@@ -2285,7 +2302,10 @@ $wgMetaNamespaceTalk = false;
 /**
  * Additional namespaces. If the namespaces defined in Language.php and
  * Namespace.php are insufficient, you can create new ones here, for example,
- * to import Help files in other languages.
+ * to import Help files in other languages. You can also override the namespace
+ * names of existing namespaces. Extensions developers should use
+ * $wgCanonicalNamespaceNames.
+ *
  * PLEASE  NOTE: Once you delete a namespace, the pages in that namespace will
  * no longer be accessible. If you rename it, then you can access them through
  * the new namespace name.
@@ -2299,7 +2319,7 @@ $wgMetaNamespaceTalk = false;
 #            102 => "Aide",
 #            103 => "Discussion_Aide"
 #            );
-$wgExtraNamespaces = null;
+$wgExtraNamespaces = array();
 
 /**
  * Namespace aliases
@@ -2687,6 +2707,14 @@ $wgUseCommaCount = false;
  */
 $wgHitcounterUpdateFreq = 1;
 
+/**
+ * How many days user must be idle before he is considered inactive. Will affect
+ * the number shown on Special:Statistics and Special:ActiveUsers special page.
+ * You might want to leave this as the default value, to provide comparable
+ * numbers between different wikis.
+ */
+$wgActiveUserDays = 30;
+
 /** @} */ # End of statistics }
 
 /************************************************************************//**
@@ -2725,6 +2753,7 @@ $wgReservedUsernames = array(
        'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
        'msg:double-redirect-fixer', // Automatic double redirect fix
        'msg:usermessage-editor', // Default user for leaving user messages
+       'msg:proxyblocker', // For Special:Blockme
 );
 
 /**
@@ -2763,7 +2792,6 @@ $wgDefaultUserOptions = array(
        'imagesize'               => 2,
        'justify'                 => 0,
        'math'                    => 1,
-       'minordefault'            => 0,
        'newpageshidepatrolled'   => 0,
        'nocache'                 => 0,
        'noconvertlink'           => 0,
@@ -2850,7 +2878,7 @@ $wgExternalAuthType = null;
  * info be provided.  Check the file where your auth mechanism is defined for
  * info on what to put here.
  */
-$wgExternalAuthConfig = array();
+$wgExternalAuthConf = array();
 
 /**
  * When should we automatically create local accounts when external accounts
@@ -3577,13 +3605,6 @@ $wgSpecialVersionShowHooks =  false;
  */
 $wgShowSQLErrors        = false;
 
-/**
- * If true, some error messages will be colorized when running scripts on the
- * command line; this can aid picking important things out when debugging.
- * Ignored when running on Windows or when output is redirected to a file.
- */
-$wgColorErrors          = true;
-
 /**
  * If set to true, uncaught exceptions will print a complete stack trace
  * to output. This should only be used for debugging, as it may reveal
@@ -3698,6 +3719,50 @@ $wgParserTestFiles = array(
  */
 $wgParserTestRemote = false;
 
+/**
+ * Enable Selenium test framework.
+ * This enables maintenance/tests/RunSeleniumTests.php and [[Special:Selenium]].
+ */
+$wgEnableSelenium = false;
+
+/** List of Selenium test suites. These must be registered with the autoloader. */
+$wgSeleniumTestSuites = array(
+       'SimpleSeleniumTestSuite'
+);
+
+
+/** Hostname of selenium server */
+$wgSeleniumTestsSeleniumHost = 'localhost';
+
+/** URL of the wiki to be tested. By default, the local wiki is used. */
+$wgSeleniumTestsWikiUrl = false;
+
+/** Port used by selenium server. */
+$wgSeleniumServerPort = 4444;
+
+/** Wiki login username. Used by Selenium to log onto the wiki. */
+$wgSeleniumTestsWikiUser      = 'Wikiuser';
+
+/** Wiki login password. Used by Selenium to log onto the wiki. */
+$wgSeleniumTestsWikiPassword  = '';
+
+/**
+ * Common browsers on Windows platform. Modify for other platforms or
+ * other Windows browsers.
+ * Use the *chrome handler in order to be able to test file uploads.
+ * Further solution suggestions: http://www.brokenbuild.com/blog/2007/06/07/testing-file-uploads-with-selenium-rc-and-firefoxor-reducing-javascript-security-in-firefox-for-fun-and-profit/
+ */
+$wgSeleniumTestsBrowsers = array(
+       'firefox' => '*firefox /usr/bin/firefox',
+       'iexplorer' => '*iexploreproxy',
+       'opera' => '*chrome /usr/bin/opera',
+);
+
+/** Actually, use this browser */
+$wgSeleniumTestsUseBrowser = 'firefox';
+
+
+
 /** @} */ # end of profiling, testing and debugging }
 
 /************************************************************************//**
@@ -3710,12 +3775,6 @@ $wgParserTestRemote = false;
  */
 $wgDisableTextSearch = false;
 
-/**
- * Set this to true to disable the context which appears on search result pages. 
- * Search context can cause a high DB load.
- */
-$wgDisableSearchContext = false;
-
 /**
  * Set to true to have nicer highligted text in search results,
  * by default off due to execution overhead
@@ -4107,6 +4166,11 @@ $wgRightsUrl = null;
 $wgRightsText = null;
 $wgRightsIcon = null;
 
+/**
+ * Set to an array of metadata terms. Else they will be loaded based on $wgRightsUrl
+ */
+$wgLicenseTerms = false;
+
 /** Set this to some HTML to override the rights icon with an arbitrary logo */
 $wgCopyrightIcon = null;
 
@@ -4338,6 +4402,16 @@ $wgSpecialPageCacheUpdates = array(
  */
 $wgExceptionHooks = array();
 
+/**
+ * List of page property names and descriptions of what they are. 
+ * This is used for the API prop=pageprops module to know which 
+ * page props to search for. The help message is only seen from 
+ * the API help page.
+ */
+$wgPageProps = array( 
+       'hiddencat' => 'Whether or not the page has a category with the __HIDDENCAT__ magic word',
+);
+
 /**
  * Page property link table invalidation lists. When a page property
  * changes, this may require other link tables to be updated (eg
@@ -4373,10 +4447,12 @@ $wgCategoryMagicGallery = true;
 $wgCategoryPagingLimit = 200;
 
 /**
- * Should the default category sortkey be the prefixed title?
- * Run maintenance/refreshLinks.php after changing this.
+ * A version indicator for collations that will be stored in cl_collation for
+ * all new rows.  Used when the collation algorithm changes: a script checks
+ * for all rows where cl_collation != $wgCollationVersion and regenerates
+ * cl_sortkey based on the page name and cl_sortkey_prefix.
  */
-$wgCategoryPrefixedDefaultSortkey = true;
+$wgCollationVersion = 1;
 
 /** @} */ # End categories }
 
@@ -4511,14 +4587,15 @@ $wgLogActions = array(
        'suppress/file'     => 'revdelete-logentry',
        'suppress/event'    => 'logdelete-logentry',
        'suppress/delete'   => 'suppressedarticle',
-       'suppress/block'        => 'blocklogentry',
+       'suppress/block'    => 'blocklogentry',
        'suppress/reblock'  => 'reblock-logentry',
-       'patrol/patrol'         => 'patrol-log-line',
+       'patrol/patrol'     => 'patrol-log-line',
 );
 
 /**
  * The same as above, but here values are names of functions,
- * not messages
+ * not messages.
+ * @see LogPage::actionText
  */
 $wgLogActionsHandlers = array();
 
@@ -4632,6 +4709,7 @@ $wgSpecialPageGroups = array(
        'Search'                    => 'redirects',
        'LinkSearch'                => 'redirects',
 
+       'ComparePages'              => 'pagetools',
        'Movepage'                  => 'pagetools',
        'MergeHistory'              => 'pagetools',
        'Revisiondelete'            => 'pagetools',
@@ -5016,6 +5094,42 @@ $wgPoolCounterConf = null;
  */
 $wgUploadMaintenance = false;
 
+/**
+ * Enabes or disables JavaScript-based suggestions of password strength
+ */
+$wgLivePasswordStrengthChecks = false;
+
+/**
+ * The location of the MediaWiki package repository to use.
+ * 
+ * @since 1.17
+ * @var string
+ */
+$wgRepositoryApiLocation = 'http://www.mediawiki.org/w/api.php';
+
+/**
+ * The location of the remote web interface for the selected repository. 
+ * 
+ * @since 1.17
+ * @var string
+ */
+$wgRepositoryLocation = 'http://www.mediawiki.org/wiki/Special:Repository';
+
+/**
+ * List of package states to filter update detection and extension listing on. 
+ * 
+ * @since 1.17
+ * @var array
+ */
+$wgRepositoryPackageStates = array(
+       //'dev',
+       //'alpha',
+       'beta',
+       //'rc',
+       'stable',
+       //'deprecated',
+);
 /**
  * For really cool vim folding this needs to be at the end:
  * vim: foldmarker=@{,@} foldmethod=marker