}
/** MediaWiki version number */
-$wgVersion = '1.16alpha';
+$wgVersion = '1.16alpha';
/** Name of the site. It must be changed in LocalSettings.php */
$wgSitename = 'MediaWiki';
$wgFileStore['deleted']['url'] = null; ///< Private
$wgFileStore['deleted']['hash'] = 3; ///< 3-level subdirectory split
+$wgImgAuthDetails = false; ///< defaults to false - only set to true if you use img_auth and want the user to see details on why access failed
+$wgImgAuthPublicTest = true; ///< defaults to true - if public read is turned on, no need for img_auth, config error unless other access is used
+
/**@{
* File repository structures
*
* this breaks interlanguage links
*/
$wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
+$wgIllegalFileChars = ":"; // These are additional characters that should be replaced with '-' in file names
/**
/**
-* Enable firefogg support
-* add support for in-browser transcoding to ogg theora
-* add support for chunk uploads for large image files
-* add support for client side hash checks
-*
-* (requires the js2 code for the interface)
-*/
-$wgEnableFirefogg = true;
-
-
-/**
- * enable oggz_chop support
- * if enabled the mv_embed player will use temporal urls
- * for helping with seeking with some plugin types
+ * Enable Firefogg support. Adds support for in-browser transcoding to Ogg
+ * Theora, chunked uploads for large image files and client side hash checks.
+ *
+ * Ignored unless $wgEnableJS2system is true.
*/
-$wgEnableTemporalOggUrls = false;
+$wgEnableFirefogg = true;
/**
* Point the upload navigation link to an external URL
/** Database type */
$wgDBtype = 'mysql';
+/** Separate username and password for maintenance tasks. Leave as null to use the default */
+$wgDBadminuser = null;
+$wgDBadminpassword = null;
+
/** Search type
* Leave as null to select the default search engine for the
* selected database type (eg SearchMySQL), or set to a class
*/
$wgLegacySchemaConversion = false;
-$wgMimeType = 'text/html';
-$wgJsMimeType = 'text/javascript';
-$wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
-$wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
-$wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
-
- /**
- * Should we output an HTML 5 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.
- */
- $wgHtml5 = true;
+$wgMimeType = 'text/html';
+$wgJsMimeType = 'text/javascript';
+$wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
+$wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
+$wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
+
+/**
+ * Should we output an HTML 5 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.
+ */
+$wgHtml5 = true;
+/**
+ * Should we try to make our HTML output well-formed XML? If set to false,
+ * output will be a few bytes shorter, and the HTML will arguably be more
+ * readable. If set to true, life will be much easier for the authors of
+ * screen-scraping bots, and the HTML will arguably be more readable.
+ *
+ * Setting this to false may omit quotation marks on some attributes, omit
+ * slashes from some self-closing tags, omit some ending tags, etc., where
+ * permitted by HTML 5. Setting it to true will not guarantee that all pages
+ * will be well-formed, although non-well-formed pages should be rare and it's
+ * a bug if you find one. Conversely, setting it to false doesn't mean that
+ * all XML-y constructs will be omitted, just that they might be.
+ *
+ * Because of compatibility with screen-scraping bots, and because it's
+ * controversial, this is currently left to true by default.
+ */
+$wgWellFormedXml = true;
/**
* Permit other namespaces in addition to the w3.org default.
* Normally we wouldn't have to define this in the root <html>
* element, but IE needs it there in some circumstances.
*/
-$wgXhtmlNamespaces = array();
+$wgXhtmlNamespaces = array();
/** Enable to allow rewriting dates in page text.
* DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
/** Default variant code, if false, the default will be the language code */
$wgDefaultLanguageVariant = false;
+/** Disabled variants array of language variant conversion.
+ * example:
+ * $wgDisabledVariant[] = 'zh-mo';
+ * $wgDisabledVariant[] = 'zh-my';
+ *
+ * or:
+ * $wgDisabledVariant = array('zh-mo', 'zh-my');
+ */
+$wgDisabledVariant = array();
+
/**
* Show a bar of language selection links in the user login and user
* registration forms; edit the "loginlanguagelinks" message to
*/
$wgShowExceptionDetails = false;
+/**
+ * If true, show a backtrace for database errors
+ */
+$wgShowDBErrorBacktrace = false;
+
/**
* Expose backend server host names through the API and various HTML comments
*/
$wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
$wgGroupPermissions['sysop']['undelete'] = true;
$wgGroupPermissions['sysop']['editinterface'] = true;
-$wgGroupPermissions['sysop']['editusercssjs'] = true;
+$wgGroupPermissions['sysop']['editusercss'] = true;
+$wgGroupPermissions['sysop']['edituserjs'] = true;
$wgGroupPermissions['sysop']['import'] = true;
$wgGroupPermissions['sysop']['importupload'] = true;
$wgGroupPermissions['sysop']['move'] = true;
*/
$wgDeleteRevisionsLimit = 0;
-/**
- * Used to figure out if a user is "active" or not. User::isActiveEditor()
- * sees if a user has made at least $wgActiveUserEditCount number of edits
- * within the last $wgActiveUserDays days.
- */
-$wgActiveUserEditCount = 30;
-$wgActiveUserDays = 30;
-
# Proxy scanner settings
#
* to ensure that client-side caches do not keep obsolete copies of global
* styles.
*/
-$wgStyleVersion = '235';
+$wgStyleVersion = '240';
# Server-side caching:
/** If you run Squid3 with ESI support, enable this (default:false): */
$wgUseESI = false;
+/** Send X-Vary-Options header for better caching (requires patched Squid) */
+$wgUseXVO = false;
+
/** Internal server name as known to Squid, if different */
# $wgInternalServer = 'http://yourinternal.tld:8000';
$wgInternalServer = $wgServer;
/** Location of the texvc binary */
$wgTexvc = './math/texvc';
+/**
+ * Normally when generating math images, we double-check that the
+ * directories we want to write to exist, and that files that have
+ * been generated still exist when we need to bring them up again.
+ *
+ * This lets us give useful error messages in case of permission
+ * problems, and automatically rebuild images that have been lost.
+ *
+ * On a big site with heavy NFS traffic this can be slow and flaky,
+ * so sometimes we want to short-circuit it by setting this to false.
+ */
+$wgMathCheckFiles = true;
+
#
# Profiling / debugging
#
NS_HELP => true,
);
-
-$wgUseOldSearchUI = true; // temp testing variable
-
/**
* If set to true the 'searcheverything' preference will be effective only for logged-in users.
* Useful for big wikis to maintain different search profiles for anonymous and logged-in users.
$wgMediaHandlers = array(
'image/jpeg' => 'BitmapHandler',
'image/png' => 'BitmapHandler',
- 'image/gif' => 'BitmapHandler',
+ 'image/gif' => 'GIFHandler',
'image/tiff' => 'TiffHandler',
'image/x-ms-bmp' => 'BmpHandler',
'image/x-bmp' => 'BmpHandler',
/** For colorized maintenance script output, is your terminal background dark ? */
$wgCommandLineDarkBg = false;
+/**
+ * Array for extensions to register their maintenance scripts with the
+ * system. The key is the name of the class and the value is the full
+ * path to the file
+ */
+$wgMaintenanceScripts = array();
+
#
# Recent changes settings
#
'noconvertlink' => 0,
'gender' => 'unknown',
'ccmeonemails' => 0,
- 'disablemail' => 0,
+ 'disablemail' => 0,
+ 'editfont' => 'default',
);
/**
*/
$wgAutoloadClasses = array();
-
/*
- * Array mapping javascript class to web path for autoloading js
- * this var is populated in AutoLoader.php
+ * Array mapping JavaScript class to web path for use by the script loader.
+ * This is populated in AutoLoader.php.
*/
$wgJSAutoloadClasses = array();
*/
$wgEnableScriptLoader = false;
+/*
+ * $wgScriptModifiedCheck should run a file modified check on javascript files when
+ * generating unique request ids for javascript include using the script-loader
+ *
+ * note this will only check core scripts that are directly included on the page.
+ * (not scripts loaded after the initial page display since after initial page
+ * display scripts inherit the unique request id)
+ *
+ * and or you can update $wgStyleVersion
+ */
+$wgScriptModifiedCheck = true;
+
/*
* enable js2 Script System
* if enabled we include jquery, mv_embed and js2 versions of editPage.js
$wgEnableJS2system = false;
/*
- * boolean; if relative file paths can be used (in addition to the autoload js classes listed in: $wgJSAutoloadClasses
+ * boolean; if relative file paths can be used (in addition to the autoload
+ * js classes listed in: $wgJSAutoloadClasses)
*/
$wgEnableScriptLoaderJsFile = false;
/*
- * boolean; if we should minify the output. (note if you send ?debug=true in the page request it will automatically not group and not minify)
+ * boolean; if we should minify the output. (note if you send ?debug=true in
+ * the page request it will automatically not group and not minify)
*/
$wgEnableScriptMinify = true;
/*
- * boolean; if we should enable javascript localization (it loads loadGM json call with mediaWiki msgs)
+ * boolean; if we should enable javascript localization (it loads loadGM json
+ * call with mediaWiki msgs)
*/
$wgEnableScriptLocalization = true;
$wgMwEmbedDirectory = "js2/mwEmbed/";
/*
- * wgDebugJavaScript used to turn on debuging for the javascript script-loader
- * & forces fresh copies of javascript
+ * Turn on debugging for the javascript script-loader & forces fresh copies
+ * of javascript
*/
-
$wgDebugJavaScript = false;
* <code>
* $wgExtensionCredits[$type][] = array(
* 'name' => 'Example extension',
- * 'version' => 1.9,
- * 'path' => __FILE__,
- * 'svn-revision' => '$LastChangedRevision$',
+ * 'version' => 1.9,
+ * 'path' => __FILE__,
* 'author' => 'Foo Barstein',
* 'url' => 'http://wwww.example.com/Example%20Extension/',
* 'description' => 'An example extension',
* </code>
*
* Where $type is 'specialpage', 'parserhook', 'variable', 'media' or 'other'.
+ * Where 'descriptionmsg' can be an array with message key and parameters:
+ * 'descriptionmsg' => array( 'exampleextension-desc', param1, param2, ... ),
*/
$wgExtensionCredits = array();
/*
/** Use the site's Cascading Style Sheets (CSS)? */
$wgUseSiteCss = true;
-/** Filter for Special:Randompage. Part of a WHERE clause */
+/**
+ * Filter for Special:Randompage. Part of a WHERE clause
+ * @deprecated as of 1.16, use the SpecialRandomGetRandomTitle hook
+*/
+
$wgExtraRandompageSQL = false;
/** Allow the "info" action, very inefficient at the moment */
* over an XMLHttpRequest from JavaScript instead of
* forcing a submit and reload of the whole page.
* Leave disabled unless you're testing it.
+ * Needs JS2 ($wgEnableJS2) to be activated.
*/
$wgLivePreview = false;
*/
$wgDisableHardRedirects = false;
+/**
+ * Set to false to disable application of access keys and tooltips,
+ * eg to avoid keyboard conflicts with system keys or as a low-level
+ * optimization.
+ */
+$wgEnableTooltipsAndAccesskeys = true;
+
/**
* Use http.dnsbl.sorbs.net to check for open proxies
*/
/**
* Timeout for HTTP requests done at script execution time
- * default is (default php.ini script time 30s - 5s for everythign else)
+ * default is (default php.ini script time 30s - 5s for everything else)
*/
$wgSyncHTTPTimeout = 25;
+
/**
-* Timeout for asynchronous http request that run in a backgournd php proccess
+* Timeout for asynchronous HTTP requests that run in a background PHP process
* default set to 20 min
*/
$wgAsyncHTTPTimeout = 60*20;
+/*
+ * if AsyncDownload is enabled (works on unix platforms)
+ * fix for windows is pending.
+ */
+$wgEnableAsyncDownload = false;
+
/**
* Proxy to use for CURL requests.
*/
/**
* Number of rows to update per query
*/
-$wgUpdateRowsPerQuery = 10;
+$wgUpdateRowsPerQuery = 100;
/**
* Enable AJAX framework
$wgAjaxUploadDestCheck = true;
/**
- * Enable AJAX upload interface (need for large http uploads & to display progress on uploads for browsers that support it)
+ * Enable the AJAX upload interface (needed for large http uploads & to display
+ * progress on uploads for browsers that support it)
*/
$wgAjaxUploadInterface = true;
$wgMaxShellTime = 180;
/**
-* Executable Path of PHP cli client (php/php5) (should be setup on install)
+* Executable path of the PHP cli binary (php/php5). Should be set up on install.
*/
$wgPhpCli = '/usr/bin/php';
*/
$wgAPIMaxUncachedDiffs = 1;
+/**
+ * Log file or URL (TCP or UDP) to log API requests to, or false to disable
+ * API request logging
+ */
+$wgAPIRequestLog = false;
+
+/**
+ * Cache the API help text for up to an hour. Disable this during API
+ * debugging and development
+ */
+$wgAPICacheHelp = true;
+
+/**
+ * Set the timeout for the API help text cache. Ignored if $wgAPICacheHelp
+ * is false.
+ */
+$wgAPICacheHelpTimeout = 60*60;
+
/**
* Parser test suite files to be run by parserTests.php when no specific
* filename is passed to it.
"$IP/maintenance/parserTests.txt",
);
+/**
+ * If configured, specifies target CodeReview installation to send test
+ * result data from 'parserTests.php --upload'
+ *
+ * Something like this:
+ * $wgParserTestRemote = array(
+ * 'api-url' => 'http://www.mediawiki.org/w/api.php',
+ * 'repo' => 'MediaWiki',
+ * 'suite' => 'ParserTests',
+ * 'path' => '/trunk/phase3', // not used client-side; for reference
+ * 'secret' => 'qmoicj3mc4mcklmqw', // Shared secret used in HMAC validation
+ * );
+ */
+$wgParserTestRemote = false;
+
/**
* Break out of framesets. This can be used to prevent external sites from
* framing your site with ads.
$wgExceptionHooks = array();
/**
- * Page property link table invalidation lists. Should only be set by exten-
- * sions.
+ * Page property link table invalidation lists. When a page property
+ * changes, this may require other link tables to be updated (eg
+ * adding __HIDDENCAT__ means the hiddencat tracking category will
+ * have been added, so the categorylinks table needs to be rebuilt).
+ * This array can be added to by extensions.
*/
$wgPagePropLinkInvalidations = array(
'hiddencat' => 'categorylinks',
*/
$wgAllowPrefChange = array();
+
+/**
+ * Settings for incoming cross-site AJAX requests:
+ * Newer browsers support cross-site AJAX when the target resource allows requests
+ * from the origin domain by the Access-Control-Allow-Origin header.
+ * This is currently only used by the API (requests to api.php)
+ * $wgCrossSiteAJAXdomains can be set using a wildcard syntax:
+ *
+ * '*' matches any number of characters
+ * '?' matches any 1 character
+ *
+ * Example:
+ $wgCrossSiteAJAXdomains = array(
+ 'www.mediawiki.org',
+ '*.wikipedia.org',
+ '*.wikimedia.org',
+ '*.wiktionary.org',
+ );
+ *
+ */
+$wgCrossSiteAJAXdomains = array();
+
/**
- * If an exact match is not found, try to find a match in different namespaces
- * before performing a search.
+ * Domains that should not be allowed to make AJAX requests,
+ * even if they match one of the domains allowed by $wgCrossSiteAJAXdomains
+ * Uses the same syntax as $wgCrossSiteAJAXdomains
+ */
+
+$wgCrossSiteAJAXdomainExceptions = array();
+
+/**
+ * The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to raise PHP's memory limit if it's below this amount.
+ */
+$wgMemoryLimit = "50M";
+
+/**
+ * Whether or not to use the AJAX categories system.
+ * Note that this requires JS2 and the script loader.
+ */
+$wgUseAJAXCategories = false;
+
+/**
+ * Only enable AJAXCategories on configured namespaces. Default is all.
*
- * Array: Ids of namespaces to attempt match in, in desired order.
+ * Example:
+ * $wgAJAXCategoriesNamespaces = array( NS_MAIN, NS_PROJECT );
+ */
+$wgAJAXCategoriesNamespaces = array();
+
+/**
+ * To disable file delete/restore temporarily
+ */
+$wgUploadMaintenance = false;
+
+/**
+ * Use old names for change_tags indices.
*/
-$wgSecondaryGoNamespaces = null;
+$wgOldChangeTagsIndex = false;