* (bug 12075) Fix URL link in DefaultSettings.php
[mediawiki.git] / includes / DefaultSettings.php
blob974e9695e21a880308dfce6f6aca5127a8af6bc0
1 <?php
2 /**
4 * NEVER EDIT THIS FILE
7 * To customize your installation, edit "LocalSettings.php". If you make
8 * changes here, they will be lost on next upgrade of MediaWiki!
10 * Note that since all these string interpolations are expanded
11 * before LocalSettings is included, if you localize something
12 * like $wgScriptPath, you must also localize everything that
13 * depends on it.
15 * Documentation is in the source and on:
16 * http://www.mediawiki.org/wiki/Manual:Configuration_settings
20 # This is not a valid entry point, perform no further processing unless MEDIAWIKI is defined
21 if( !defined( 'MEDIAWIKI' ) ) {
22 echo "This file is part of MediaWiki and is not a valid entry point\n";
23 die( 1 );
26 /**
27 * Create a site configuration object
28 * Not used for much in a default install
30 require_once( "$IP/includes/SiteConfiguration.php" );
31 $wgConf = new SiteConfiguration;
33 /** MediaWiki version number */
34 $wgVersion = '1.12alpha';
36 /** Name of the site. It must be changed in LocalSettings.php */
37 $wgSitename = 'MediaWiki';
39 /**
40 * Name of the project namespace. If left set to false, $wgSitename will be
41 * used instead.
43 $wgMetaNamespace = false;
45 /**
46 * Name of the project talk namespace. If left set to false, a name derived
47 * from the name of the project namespace will be used.
49 $wgMetaNamespaceTalk = false;
52 /** URL of the server. It will be automatically built including https mode */
53 $wgServer = '';
55 if( isset( $_SERVER['SERVER_NAME'] ) ) {
56 $wgServerName = $_SERVER['SERVER_NAME'];
57 } elseif( isset( $_SERVER['HOSTNAME'] ) ) {
58 $wgServerName = $_SERVER['HOSTNAME'];
59 } elseif( isset( $_SERVER['HTTP_HOST'] ) ) {
60 $wgServerName = $_SERVER['HTTP_HOST'];
61 } elseif( isset( $_SERVER['SERVER_ADDR'] ) ) {
62 $wgServerName = $_SERVER['SERVER_ADDR'];
63 } else {
64 $wgServerName = 'localhost';
67 # check if server use https:
68 $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
70 $wgServer = $wgProto.'://' . $wgServerName;
71 # If the port is a non-standard one, add it to the URL
72 if( isset( $_SERVER['SERVER_PORT'] )
73 && !strpos( $wgServerName, ':' )
74 && ( ( $wgProto == 'http' && $_SERVER['SERVER_PORT'] != 80 )
75 || ( $wgProto == 'https' && $_SERVER['SERVER_PORT'] != 443 ) ) ) {
77 $wgServer .= ":" . $_SERVER['SERVER_PORT'];
81 /**
82 * The path we should point to.
83 * It might be a virtual path in case with use apache mod_rewrite for example
85 * This *needs* to be set correctly.
87 * Other paths will be set to defaults based on it unless they are directly
88 * set in LocalSettings.php
90 $wgScriptPath = '/wiki';
92 /**
93 * Whether to support URLs like index.php/Page_title
94 * These often break when PHP is set up in CGI mode.
95 * PATH_INFO *may* be correct if cgi.fix_pathinfo is
96 * set, but then again it may not; lighttpd converts
97 * incoming path data to lowercase on systems with
98 * case-insensitive filesystems, and there have been
99 * reports of problems on Apache as well.
101 * To be safe we'll continue to keep it off by default.
103 * Override this to false if $_SERVER['PATH_INFO']
104 * contains unexpectedly incorrect garbage, or to
105 * true if it is really correct.
107 * The default $wgArticlePath will be set based on
108 * this value at runtime, but if you have customized
109 * it, having this incorrectly set to true can
110 * cause redirect loops when "pretty URLs" are used.
113 $wgUsePathInfo =
114 ( strpos( php_sapi_name(), 'cgi' ) === false ) &&
115 ( strpos( php_sapi_name(), 'apache2filter' ) === false ) &&
116 ( strpos( php_sapi_name(), 'isapi' ) === false );
119 /**#@+
120 * Script users will request to get articles
121 * ATTN: Old installations used wiki.phtml and redirect.phtml -
122 * make sure that LocalSettings.php is correctly set!
124 * Will be set based on $wgScriptPath in Setup.php if not overridden
125 * in LocalSettings.php. Generally you should not need to change this
126 * unless you don't like seeing "index.php".
128 $wgScriptExtension = '.php'; /// extension to append to script names by default
129 $wgScript = false; /// defaults to "{$wgScriptPath}/index{$wgScriptExtension}"
130 $wgRedirectScript = false; /// defaults to "{$wgScriptPath}/redirect{$wgScriptExtension}"
131 /**#@-*/
134 /**#@+
135 * These various web and file path variables are set to their defaults
136 * in Setup.php if they are not explicitly set from LocalSettings.php.
137 * If you do override them, be sure to set them all!
139 * These will relatively rarely need to be set manually, unless you are
140 * splitting style sheets or images outside the main document root.
142 * @global string
145 * style path as seen by users
147 $wgStylePath = false; /// defaults to "{$wgScriptPath}/skins"
149 * filesystem stylesheets directory
151 $wgStyleDirectory = false; /// defaults to "{$IP}/skins"
152 $wgStyleSheetPath = &$wgStylePath;
153 $wgArticlePath = false; /// default to "{$wgScript}/$1" or "{$wgScript}?title=$1", depending on $wgUsePathInfo
154 $wgVariantArticlePath = false;
155 $wgUploadPath = false; /// defaults to "{$wgScriptPath}/images"
156 $wgUploadDirectory = false; /// defaults to "{$IP}/images"
157 $wgHashedUploadDirectory = true;
158 $wgLogo = false; /// defaults to "{$wgStylePath}/common/images/wiki.png"
159 $wgFavicon = '/favicon.ico';
160 $wgMathPath = false; /// defaults to "{$wgUploadPath}/math"
161 $wgMathDirectory = false; /// defaults to "{$wgUploadDirectory}/math"
162 $wgTmpDirectory = false; /// defaults to "{$wgUploadDirectory}/tmp"
163 $wgUploadBaseUrl = "";
164 /**#@-*/
167 * New file storage paths; currently used only for deleted files.
168 * Set it like this:
170 * $wgFileStore['deleted']['directory'] = '/var/wiki/private/deleted';
173 $wgFileStore = array();
174 $wgFileStore['deleted']['directory'] = false;// Defaults to $wgUploadDirectory/deleted
175 $wgFileStore['deleted']['url'] = null; // Private
176 $wgFileStore['deleted']['hash'] = 3; // 3-level subdirectory split
178 /**#@+
179 * File repository structures
181 * $wgLocalFileRepo is a single repository structure, and $wgForeignFileRepo is
182 * a an array of such structures. Each repository structure is an associative
183 * array of properties configuring the repository.
185 * Properties required for all repos:
186 * class The class name for the repository. May come from the core or an extension.
187 * The core repository classes are LocalRepo, ForeignDBRepo, FSRepo.
189 * name A unique name for the repository.
191 * For all core repos:
192 * url Base public URL
193 * hashLevels The number of directory levels for hash-based division of files
194 * thumbScriptUrl The URL for thumb.php (optional, not recommended)
195 * transformVia404 Whether to skip media file transformation on parse and rely on a 404
196 * handler instead.
197 * initialCapital Equivalent to $wgCapitalLinks, determines whether filenames implicitly
198 * start with a capital letter. The current implementation may give incorrect
199 * description page links when the local $wgCapitalLinks and initialCapital
200 * are mismatched.
201 * pathDisclosureProtection
202 * May be 'paranoid' to remove all parameters from error messages, 'none' to
203 * leave the paths in unchanged, or 'simple' to replace paths with
204 * placeholders. Default for LocalRepo is 'simple'.
206 * These settings describe a foreign MediaWiki installation. They are optional, and will be ignored
207 * for local repositories:
208 * descBaseUrl URL of image description pages, e.g. http://en.wikipedia.org/wiki/Image:
209 * scriptDirUrl URL of the MediaWiki installation, equivalent to $wgScriptPath, e.g.
210 * http://en.wikipedia.org/w
212 * articleUrl Equivalent to $wgArticlePath, e.g. http://en.wikipedia.org/wiki/$1
213 * fetchDescription Fetch the text of the remote file description page. Equivalent to
214 * $wgFetchCommonsDescriptions.
216 * ForeignDBRepo:
217 * dbType, dbServer, dbUser, dbPassword, dbName, dbFlags
218 * equivalent to the corresponding member of $wgDBservers
219 * tablePrefix Table prefix, the foreign wiki's $wgDBprefix
220 * hasSharedCache True if the wiki's shared cache is accessible via the local $wgMemc
222 * The default is to initialise these arrays from the MW<1.11 backwards compatible settings:
223 * $wgUploadPath, $wgThumbnailScriptPath, $wgSharedUploadDirectory, etc.
225 $wgLocalFileRepo = false;
226 $wgForeignFileRepos = array();
227 /**#@-*/
230 * Allowed title characters -- regex character class
231 * Don't change this unless you know what you're doing
233 * Problematic punctuation:
234 * []{}|# Are needed for link syntax, never enable these
235 * <> Causes problems with HTML escaping, don't use
236 * % Enabled by default, minor problems with path to query rewrite rules, see below
237 * + Enabled by default, but doesn't work with path to query rewrite rules, corrupted by apache
238 * ? Enabled by default, but doesn't work with path to PATH_INFO rewrites
240 * All three of these punctuation problems can be avoided by using an alias, instead of a
241 * rewrite rule of either variety.
243 * The problem with % is that when using a path to query rewrite rule, URLs are
244 * double-unescaped: once by Apache's path conversion code, and again by PHP. So
245 * %253F, for example, becomes "?". Our code does not double-escape to compensate
246 * for this, indeed double escaping would break if the double-escaped title was
247 * passed in the query string rather than the path. This is a minor security issue
248 * because articles can be created such that they are hard to view or edit.
250 * In some rare cases you may wish to remove + for compatibility with old links.
252 * Theoretically 0x80-0x9F of ISO 8859-1 should be disallowed, but
253 * this breaks interlanguage links
255 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
259 * The external URL protocols
261 $wgUrlProtocols = array(
262 'http://',
263 'https://',
264 'ftp://',
265 'irc://',
266 'gopher://',
267 'telnet://', // Well if we're going to support the above.. -ævar
268 'nntp://', // @bug 3808 RFC 1738
269 'worldwind://',
270 'mailto:',
271 'news:'
274 /** internal name of virus scanner. This servers as a key to the $wgAntivirusSetup array.
275 * Set this to NULL to disable virus scanning. If not null, every file uploaded will be scanned for viruses.
276 * @global string $wgAntivirus
278 $wgAntivirus= NULL;
280 /** Configuration for different virus scanners. This an associative array of associative arrays:
281 * it contains on setup array per known scanner type. The entry is selected by $wgAntivirus, i.e.
282 * valid values for $wgAntivirus are the keys defined in this array.
284 * The configuration array for each scanner contains the following keys: "command", "codemap", "messagepattern";
286 * "command" is the full command to call the virus scanner - %f will be replaced with the name of the
287 * file to scan. If not present, the filename will be appended to the command. Note that this must be
288 * overwritten if the scanner is not in the system path; in that case, plase set
289 * $wgAntivirusSetup[$wgAntivirus]['command'] to the desired command with full path.
291 * "codemap" is a mapping of exit code to return codes of the detectVirus function in SpecialUpload.
292 * An exit code mapped to AV_SCAN_FAILED causes the function to consider the scan to be failed. This will pass
293 * the file if $wgAntivirusRequired is not set.
294 * An exit code mapped to AV_SCAN_ABORTED causes the function to consider the file to have an usupported format,
295 * which is probably imune to virusses. This causes the file to pass.
296 * An exit code mapped to AV_NO_VIRUS will cause the file to pass, meaning no virus was found.
297 * All other codes (like AV_VIRUS_FOUND) will cause the function to report a virus.
298 * You may use "*" as a key in the array to catch all exit codes not mapped otherwise.
300 * "messagepattern" is a perl regular expression to extract the meaningful part of the scanners
301 * output. The relevant part should be matched as group one (\1).
302 * If not defined or the pattern does not match, the full message is shown to the user.
304 * @global array $wgAntivirusSetup
306 $wgAntivirusSetup = array(
308 #setup for clamav
309 'clamav' => array (
310 'command' => "clamscan --no-summary ",
312 'codemap' => array (
313 "0" => AV_NO_VIRUS, # no virus
314 "1" => AV_VIRUS_FOUND, # virus found
315 "52" => AV_SCAN_ABORTED, # unsupported file format (probably imune)
316 "*" => AV_SCAN_FAILED, # else scan failed
319 'messagepattern' => '/.*?:(.*)/sim',
322 #setup for f-prot
323 'f-prot' => array (
324 'command' => "f-prot ",
326 'codemap' => array (
327 "0" => AV_NO_VIRUS, # no virus
328 "3" => AV_VIRUS_FOUND, # virus found
329 "6" => AV_VIRUS_FOUND, # virus found
330 "*" => AV_SCAN_FAILED, # else scan failed
333 'messagepattern' => '/.*?Infection:(.*)$/m',
338 /** Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
339 * @global boolean $wgAntivirusRequired
341 $wgAntivirusRequired= true;
343 /** Determines if the mime type of uploaded files should be checked
344 * @global boolean $wgVerifyMimeType
346 $wgVerifyMimeType= true;
348 /** Sets the mime type definition file to use by MimeMagic.php.
349 * @global string $wgMimeTypeFile
351 $wgMimeTypeFile= "includes/mime.types";
352 #$wgMimeTypeFile= "/etc/mime.types";
353 #$wgMimeTypeFile= NULL; #use built-in defaults only.
355 /** Sets the mime type info file to use by MimeMagic.php.
356 * @global string $wgMimeInfoFile
358 $wgMimeInfoFile= "includes/mime.info";
359 #$wgMimeInfoFile= NULL; #use built-in defaults only.
361 /** Switch for loading the FileInfo extension by PECL at runtime.
362 * This should be used only if fileinfo is installed as a shared object
363 * or a dynamic libary
364 * @global string $wgLoadFileinfoExtension
366 $wgLoadFileinfoExtension= false;
368 /** Sets an external mime detector program. The command must print only
369 * the mime type to standard output.
370 * The name of the file to process will be appended to the command given here.
371 * If not set or NULL, mime_content_type will be used if available.
373 $wgMimeDetectorCommand= NULL; # use internal mime_content_type function, available since php 4.3.0
374 #$wgMimeDetectorCommand= "file -bi"; #use external mime detector (Linux)
376 /** Switch for trivial mime detection. Used by thumb.php to disable all fance
377 * things, because only a few types of images are needed and file extensions
378 * can be trusted.
380 $wgTrivialMimeDetection= false;
383 * To set 'pretty' URL paths for actions other than
384 * plain page views, add to this array. For instance:
385 * 'edit' => "$wgScriptPath/edit/$1"
387 * There must be an appropriate script or rewrite rule
388 * in place to handle these URLs.
390 $wgActionPaths = array();
393 * If you operate multiple wikis, you can define a shared upload path here.
394 * Uploads to this wiki will NOT be put there - they will be put into
395 * $wgUploadDirectory.
396 * If $wgUseSharedUploads is set, the wiki will look in the shared repository if
397 * no file of the given name is found in the local repository (for [[Image:..]],
398 * [[Media:..]] links). Thumbnails will also be looked for and generated in this
399 * directory.
401 * Note that these configuration settings can now be defined on a per-
402 * repository basis for an arbitrary number of file repositories, using the
403 * $wgForeignFileRepos variable.
405 $wgUseSharedUploads = false;
406 /** Full path on the web server where shared uploads can be found */
407 $wgSharedUploadPath = "http://commons.wikimedia.org/shared/images";
408 /** Fetch commons image description pages and display them on the local wiki? */
409 $wgFetchCommonsDescriptions = false;
410 /** Path on the file system where shared uploads can be found. */
411 $wgSharedUploadDirectory = "/var/www/wiki3/images";
412 /** DB name with metadata about shared directory. Set this to false if the uploads do not come from a wiki. */
413 $wgSharedUploadDBname = false;
414 /** Optional table prefix used in database. */
415 $wgSharedUploadDBprefix = '';
416 /** Cache shared metadata in memcached. Don't do this if the commons wiki is in a different memcached domain */
417 $wgCacheSharedUploads = true;
418 /** Allow for upload to be copied from an URL. Requires Special:Upload?source=web */
419 $wgAllowCopyUploads = false;
421 * Max size for uploads, in bytes. Currently only works for uploads from URL
422 * via CURL (see $wgAllowCopyUploads). The only way to impose limits on
423 * normal uploads is currently to edit php.ini.
425 $wgMaxUploadSize = 1024*1024*100; # 100MB
428 * Point the upload navigation link to an external URL
429 * Useful if you want to use a shared repository by default
430 * without disabling local uploads (use $wgEnableUploads = false for that)
431 * e.g. $wgUploadNavigationUrl = 'http://commons.wikimedia.org/wiki/Special:Upload';
433 $wgUploadNavigationUrl = false;
436 * Give a path here to use thumb.php for thumbnail generation on client request, instead of
437 * generating them on render and outputting a static URL. This is necessary if some of your
438 * apache servers don't have read/write access to the thumbnail path.
440 * Example:
441 * $wgThumbnailScriptPath = "{$wgScriptPath}/thumb{$wgScriptExtension}";
443 $wgThumbnailScriptPath = false;
444 $wgSharedThumbnailScriptPath = false;
447 * Set the following to false especially if you have a set of files that need to
448 * be accessible by all wikis, and you do not want to use the hash (path/a/aa/)
449 * directory layout.
451 $wgHashedSharedUploadDirectory = true;
454 * Base URL for a repository wiki. Leave this blank if uploads are just stored
455 * in a shared directory and not meant to be accessible through a separate wiki.
456 * Otherwise the image description pages on the local wiki will link to the
457 * image description page on this wiki.
459 * Please specify the namespace, as in the example below.
461 $wgRepositoryBaseUrl="http://commons.wikimedia.org/wiki/Image:";
465 # Email settings
469 * Site admin email address
470 * Default to wikiadmin@SERVER_NAME
471 * @global string $wgEmergencyContact
473 $wgEmergencyContact = 'wikiadmin@' . $wgServerName;
476 * Password reminder email address
477 * The address we should use as sender when a user is requesting his password
478 * Default to apache@SERVER_NAME
479 * @global string $wgPasswordSender
481 $wgPasswordSender = 'MediaWiki Mail <apache@' . $wgServerName . '>';
484 * dummy address which should be accepted during mail send action
485 * It might be necessay to adapt the address or to set it equal
486 * to the $wgEmergencyContact address
488 #$wgNoReplyAddress = $wgEmergencyContact;
489 $wgNoReplyAddress = 'reply@not.possible';
492 * Set to true to enable the e-mail basic features:
493 * Password reminders, etc. If sending e-mail on your
494 * server doesn't work, you might want to disable this.
495 * @global bool $wgEnableEmail
497 $wgEnableEmail = true;
500 * Set to true to enable user-to-user e-mail.
501 * This can potentially be abused, as it's hard to track.
502 * @global bool $wgEnableUserEmail
504 $wgEnableUserEmail = true;
507 * Minimum time, in hours, which must elapse between password reminder
508 * emails for a given account. This is to prevent abuse by mail flooding.
510 $wgPasswordReminderResendTime = 24;
513 * SMTP Mode
514 * For using a direct (authenticated) SMTP server connection.
515 * Default to false or fill an array :
516 * <code>
517 * "host" => 'SMTP domain',
518 * "IDHost" => 'domain for MessageID',
519 * "port" => "25",
520 * "auth" => true/false,
521 * "username" => user,
522 * "password" => password
523 * </code>
525 * @global mixed $wgSMTP
527 $wgSMTP = false;
530 /**#@+
531 * Database settings
533 /** database host name or ip address */
534 $wgDBserver = 'localhost';
535 /** database port number */
536 $wgDBport = '';
537 /** name of the database */
538 $wgDBname = 'wikidb';
539 /** */
540 $wgDBconnection = '';
541 /** Database username */
542 $wgDBuser = 'wikiuser';
543 /** Database type
545 $wgDBtype = "mysql";
546 /** Search type
547 * Leave as null to select the default search engine for the
548 * selected database type (eg SearchMySQL4), or set to a class
549 * name to override to a custom search engine.
551 $wgSearchType = null;
552 /** Table name prefix */
553 $wgDBprefix = '';
554 /** MySQL table options to use during installation or update */
555 $wgDBTableOptions = 'TYPE=InnoDB';
557 /**#@-*/
560 /** Live high performance sites should disable this - some checks acquire giant mysql locks */
561 $wgCheckDBSchema = true;
565 * Shared database for multiple wikis. Presently used for storing a user table
566 * for single sign-on. The server for this database must be the same as for the
567 * main database.
568 * EXPERIMENTAL
570 $wgSharedDB = null;
572 # Database load balancer
573 # This is a two-dimensional array, an array of server info structures
574 # Fields are:
575 # host: Host name
576 # dbname: Default database name
577 # user: DB user
578 # password: DB password
579 # type: "mysql" or "postgres"
580 # load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
581 # groupLoads: array of load ratios, the key is the query group name. A query may belong
582 # to several groups, the most specific group defined here is used.
584 # flags: bit field
585 # DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
586 # DBO_DEBUG -- equivalent of $wgDebugDumpSql
587 # DBO_TRX -- wrap entire request in a transaction
588 # DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
589 # DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)
591 # max lag: (optional) Maximum replication lag before a slave will taken out of rotation
592 # max threads: (optional) Maximum number of running threads
594 # These and any other user-defined properties will be assigned to the mLBInfo member
595 # variable of the Database object.
597 # Leave at false to use the single-server variables above. If you set this
598 # variable, the single-server variables will generally be ignored (except
599 # perhaps in some command-line scripts).
601 # The first server listed in this array (with key 0) will be the master. The
602 # rest of the servers will be slaves. To prevent writes to your slaves due to
603 # accidental misconfiguration or MediaWiki bugs, set read_only=1 on all your
604 # slaves in my.cnf. You can set read_only mode at runtime using:
606 # SET @@read_only=1;
608 # Since the effect of writing to a slave is so damaging and difficult to clean
609 # up, we at Wikimedia set read_only=1 in my.cnf on all our DB servers, even
610 # our masters, and then set read_only=0 on masters at runtime.
612 $wgDBservers = false;
614 /** How long to wait for a slave to catch up to the master */
615 $wgMasterWaitTimeout = 10;
617 /** File to log database errors to */
618 $wgDBerrorLog = false;
620 /** When to give an error message */
621 $wgDBClusterTimeout = 10;
624 * wgDBminWordLen :
625 * MySQL 3.x : used to discard words that MySQL will not return any results for
626 * shorter values configure mysql directly.
627 * MySQL 4.x : ignore it and configure mySQL
628 * See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
630 $wgDBminWordLen = 4;
631 /** Set to true if using InnoDB tables */
632 $wgDBtransactions = false;
633 /** Set to true for compatibility with extensions that might be checking.
634 * MySQL 3.23.x is no longer supported. */
635 $wgDBmysql4 = true;
638 * Set to true to engage MySQL 4.1/5.0 charset-related features;
639 * for now will just cause sending of 'SET NAMES=utf8' on connect.
641 * WARNING: THIS IS EXPERIMENTAL!
643 * May break if you're not using the table defs from mysql5/tables.sql.
644 * May break if you're upgrading an existing wiki if set differently.
645 * Broken symptoms likely to include incorrect behavior with page titles,
646 * usernames, comments etc containing non-ASCII characters.
647 * Might also cause failures on the object cache and other things.
649 * Even correct usage may cause failures with Unicode supplementary
650 * characters (those not in the Basic Multilingual Plane) unless MySQL
651 * has enhanced their Unicode support.
653 $wgDBmysql5 = false;
656 * Other wikis on this site, can be administered from a single developer
657 * account.
658 * Array numeric key => database name
660 $wgLocalDatabases = array();
663 * For multi-wiki clusters with multiple master servers; if an alternate
664 * is listed for the requested database, a connection to it will be opened
665 * instead of to the current wiki's regular master server when cross-wiki
666 * data operations are done from here.
668 * Requires that the other server be accessible by network, with the same
669 * username/password as the primary.
671 * eg $wgAlternateMaster['enwiki'] = 'ariel';
673 $wgAlternateMaster = array();
676 * Object cache settings
677 * See Defines.php for types
679 $wgMainCacheType = CACHE_NONE;
680 $wgMessageCacheType = CACHE_ANYTHING;
681 $wgParserCacheType = CACHE_ANYTHING;
683 $wgParserCacheExpireTime = 86400;
685 $wgSessionsInMemcached = false;
686 $wgLinkCacheMemcached = false; # Not fully tested
689 * Memcached-specific settings
690 * See docs/memcached.txt
692 $wgUseMemCached = false;
693 $wgMemCachedDebug = false; # Will be set to false in Setup.php, if the server isn't working
694 $wgMemCachedServers = array( '127.0.0.1:11000' );
695 $wgMemCachedPersistent = false;
698 * Directory for local copy of message cache, for use in addition to memcached
700 $wgLocalMessageCache = false;
702 * Defines format of local cache
703 * true - Serialized object
704 * false - PHP source file (Warning - security risk)
706 $wgLocalMessageCacheSerialized = true;
709 * Directory for compiled constant message array databases
710 * WARNING: turning anything on will just break things, aaaaaah!!!!
712 $wgCachedMessageArrays = false;
714 # Language settings
716 /** Site language code, should be one of ./languages/Language(.*).php */
717 $wgLanguageCode = 'en';
720 * Some languages need different word forms, usually for different cases.
721 * Used in Language::convertGrammar().
723 $wgGrammarForms = array();
724 #$wgGrammarForms['en']['genitive']['car'] = 'car\'s';
726 /** Treat language links as magic connectors, not inline links */
727 $wgInterwikiMagic = true;
729 /** Hide interlanguage links from the sidebar */
730 $wgHideInterlanguageLinks = false;
733 /** We speak UTF-8 all the time now, unless some oddities happen */
734 $wgInputEncoding = 'UTF-8';
735 $wgOutputEncoding = 'UTF-8';
736 $wgEditEncoding = '';
738 # Set this to eg 'ISO-8859-1' to perform character set
739 # conversion when loading old revisions not marked with
740 # "utf-8" flag. Use this when converting wiki to UTF-8
741 # without the burdensome mass conversion of old text data.
743 # NOTE! This DOES NOT touch any fields other than old_text.
744 # Titles, comments, user names, etc still must be converted
745 # en masse in the database before continuing as a UTF-8 wiki.
746 $wgLegacyEncoding = false;
749 * If set to true, the MediaWiki 1.4 to 1.5 schema conversion will
750 * create stub reference rows in the text table instead of copying
751 * the full text of all current entries from 'cur' to 'text'.
753 * This will speed up the conversion step for large sites, but
754 * requires that the cur table be kept around for those revisions
755 * to remain viewable.
757 * maintenance/migrateCurStubs.php can be used to complete the
758 * migration in the background once the wiki is back online.
760 * This option affects the updaters *only*. Any present cur stub
761 * revisions will be readable at runtime regardless of this setting.
763 $wgLegacySchemaConversion = false;
765 $wgMimeType = 'text/html';
766 $wgJsMimeType = 'text/javascript';
767 $wgDocType = '-//W3C//DTD XHTML 1.0 Transitional//EN';
768 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
769 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
771 # Permit other namespaces in addition to the w3.org default.
772 # Use the prefix for the key and the namespace for the value. For
773 # example:
774 # $wgXhtmlNamespaces['svg'] = 'http://www.w3.org/2000/svg';
775 # Normally we wouldn't have to define this in the root <html>
776 # element, but IE needs it there in some circumstances.
777 $wgXhtmlNamespaces = array();
779 /** Enable to allow rewriting dates in page text.
780 * DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES */
781 $wgUseDynamicDates = false;
782 /** Enable dates like 'May 12' instead of '12 May', this only takes effect if
783 * the interface is set to English
785 $wgAmericanDates = false;
787 * For Hindi and Arabic use local numerals instead of Western style (0-9)
788 * numerals in interface.
790 $wgTranslateNumerals = true;
793 * Translation using MediaWiki: namespace.
794 * This will increase load times by 25-60% unless memcached is installed.
795 * Interface messages will be loaded from the database.
797 $wgUseDatabaseMessages = true;
800 * Expiry time for the message cache key
802 $wgMsgCacheExpiry = 86400;
805 * Maximum entry size in the message cache, in bytes
807 $wgMaxMsgCacheEntrySize = 10000;
809 # Whether to enable language variant conversion.
810 $wgDisableLangConversion = false;
812 # Default variant code, if false, the default will be the language code
813 $wgDefaultLanguageVariant = false;
816 * Show a bar of language selection links in the user login and user
817 * registration forms; edit the "loginlanguagelinks" message to
818 * customise these
820 $wgLoginLanguageSelector = false;
822 # Whether to use zhdaemon to perform Chinese text processing
823 # zhdaemon is under developement, so normally you don't want to
824 # use it unless for testing
825 $wgUseZhdaemon = false;
826 $wgZhdaemonHost="localhost";
827 $wgZhdaemonPort=2004;
829 /** Normally you can ignore this and it will be something
830 like $wgMetaNamespace . "_talk". In some languages, you
831 may want to set this manually for grammatical reasons.
832 It is currently only respected by those languages
833 where it might be relevant and where no automatic
834 grammar converter exists.
836 $wgMetaNamespaceTalk = false;
838 # Miscellaneous configuration settings
841 $wgLocalInterwiki = 'w';
842 $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table
844 /** Interwiki caching settings.
845 $wgInterwikiCache specifies path to constant database file
846 This cdb database is generated by dumpInterwiki from maintenance
847 and has such key formats:
848 dbname:key - a simple key (e.g. enwiki:meta)
849 _sitename:key - site-scope key (e.g. wiktionary:meta)
850 __global:key - global-scope key (e.g. __global:meta)
851 __sites:dbname - site mapping (e.g. __sites:enwiki)
852 Sites mapping just specifies site name, other keys provide
853 "local url" data layout.
854 $wgInterwikiScopes specify number of domains to check for messages:
855 1 - Just wiki(db)-level
856 2 - wiki and global levels
857 3 - site levels
858 $wgInterwikiFallbackSite - if unable to resolve from cache
860 $wgInterwikiCache = false;
861 $wgInterwikiScopes = 3;
862 $wgInterwikiFallbackSite = 'wiki';
865 * If local interwikis are set up which allow redirects,
866 * set this regexp to restrict URLs which will be displayed
867 * as 'redirected from' links.
869 * It might look something like this:
870 * $wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';
872 * Leave at false to avoid displaying any incoming redirect markers.
873 * This does not affect intra-wiki redirects, which don't change
874 * the URL.
876 $wgRedirectSources = false;
879 $wgShowIPinHeader = true; # For non-logged in users
880 $wgMaxNameChars = 255; # Maximum number of bytes in username
881 $wgMaxSigChars = 255; # Maximum number of Unicode characters in signature
882 $wgMaxArticleSize = 2048; # Maximum article size in kilobytes
884 $wgMaxPPNodeCount = 1000000; # A complexity limit on template expansion
886 $wgExtraSubtitle = '';
887 $wgSiteSupportPage = ''; # A page where you users can receive donations
889 /***
890 * If this lock file exists, the wiki will be forced into read-only mode.
891 * Its contents will be shown to users as part of the read-only warning
892 * message.
894 $wgReadOnlyFile = false; /// defaults to "{$wgUploadDirectory}/lock_yBgMBwiR";
897 * The debug log file should be not be publicly accessible if it is used, as it
898 * may contain private data. */
899 $wgDebugLogFile = '';
901 /**#@+
902 * @global bool
904 $wgDebugRedirects = false;
905 $wgDebugRawPage = false; # Avoid overlapping debug entries by leaving out CSS
907 $wgDebugComments = false;
908 $wgReadOnly = null;
909 $wgLogQueries = false;
912 * Write SQL queries to the debug log
914 $wgDebugDumpSql = false;
917 * Set to an array of log group keys to filenames.
918 * If set, wfDebugLog() output for that group will go to that file instead
919 * of the regular $wgDebugLogFile. Useful for enabling selective logging
920 * in production.
922 $wgDebugLogGroups = array();
925 * Whether to show "we're sorry, but there has been a database error" pages.
926 * Displaying errors aids in debugging, but may display information useful
927 * to an attacker.
929 $wgShowSQLErrors = false;
932 * If true, some error messages will be colorized when running scripts on the
933 * command line; this can aid picking important things out when debugging.
934 * Ignored when running on Windows or when output is redirected to a file.
936 $wgColorErrors = true;
939 * If set to true, uncaught exceptions will print a complete stack trace
940 * to output. This should only be used for debugging, as it may reveal
941 * private information in function parameters due to PHP's backtrace
942 * formatting.
944 $wgShowExceptionDetails = false;
947 * Expose backend server host names through the API and various HTML comments
949 $wgShowHostnames = false;
952 * Use experimental, DMOZ-like category browser
954 $wgUseCategoryBrowser = false;
957 * Keep parsed pages in a cache (objectcache table, turck, or memcached)
958 * to speed up output of the same page viewed by another user with the
959 * same options.
961 * This can provide a significant speedup for medium to large pages,
962 * so you probably want to keep it on.
964 $wgEnableParserCache = true;
967 * If on, the sidebar navigation links are cached for users with the
968 * current language set. This can save a touch of load on a busy site
969 * by shaving off extra message lookups.
971 * However it is also fragile: changing the site configuration, or
972 * having a variable $wgArticlePath, can produce broken links that
973 * don't update as expected.
975 $wgEnableSidebarCache = false;
978 * Under which condition should a page in the main namespace be counted
979 * as a valid article? If $wgUseCommaCount is set to true, it will be
980 * counted if it contains at least one comma. If it is set to false
981 * (default), it will only be counted if it contains at least one [[wiki
982 * link]]. See http://meta.wikimedia.org/wiki/Help:Article_count
984 * Retroactively changing this variable will not affect
985 * the existing count (cf. maintenance/recount.sql).
987 $wgUseCommaCount = false;
989 /**#@-*/
992 * wgHitcounterUpdateFreq sets how often page counters should be updated, higher
993 * values are easier on the database. A value of 1 causes the counters to be
994 * updated on every hit, any higher value n cause them to update *on average*
995 * every n hits. Should be set to either 1 or something largish, eg 1000, for
996 * maximum efficiency.
998 $wgHitcounterUpdateFreq = 1;
1000 # Basic user rights and block settings
1001 $wgSysopUserBans = true; # Allow sysops to ban logged-in users
1002 $wgSysopRangeBans = true; # Allow sysops to ban IP ranges
1003 $wgAutoblockExpiry = 86400; # Number of seconds before autoblock entries expire
1004 $wgBlockAllowsUTEdit = false; # Blocks allow users to edit their own user talk page
1005 $wgSysopEmailBans = true; # Allow sysops to ban users from accessing Emailuser
1007 # Pages anonymous user may see as an array, e.g.:
1008 # array ( "Main Page", "Special:Userlogin", "Wikipedia:Help");
1009 # NOTE: This will only work if $wgGroupPermissions['*']['read']
1010 # is false -- see below. Otherwise, ALL pages are accessible,
1011 # regardless of this setting.
1012 # Also note that this will only protect _pages in the wiki_.
1013 # Uploaded files will remain readable. Make your upload
1014 # directory name unguessable, or use .htaccess to protect it.
1015 $wgWhitelistRead = false;
1017 /**
1018 * Should editors be required to have a validated e-mail
1019 * address before being allowed to edit?
1021 $wgEmailConfirmToEdit=false;
1024 * Permission keys given to users in each group.
1025 * All users are implicitly in the '*' group including anonymous visitors;
1026 * logged-in users are all implicitly in the 'user' group. These will be
1027 * combined with the permissions of all groups that a given user is listed
1028 * in in the user_groups table.
1030 * Note: Don't set $wgGroupPermissions = array(); unless you know what you're
1031 * doing! This will wipe all permissions, and may mean that your users are
1032 * unable to perform certain essential tasks or access new functionality
1033 * when new permissions are introduced and default grants established.
1035 * Functionality to make pages inaccessible has not been extensively tested
1036 * for security. Use at your own risk!
1038 * This replaces wgWhitelistAccount and wgWhitelistEdit
1040 $wgGroupPermissions = array();
1042 // Implicit group for all visitors
1043 $wgGroupPermissions['*' ]['createaccount'] = true;
1044 $wgGroupPermissions['*' ]['read'] = true;
1045 $wgGroupPermissions['*' ]['edit'] = true;
1046 $wgGroupPermissions['*' ]['createpage'] = true;
1047 $wgGroupPermissions['*' ]['createtalk'] = true;
1049 // Implicit group for all logged-in accounts
1050 $wgGroupPermissions['user' ]['move'] = true;
1051 $wgGroupPermissions['user' ]['read'] = true;
1052 $wgGroupPermissions['user' ]['edit'] = true;
1053 $wgGroupPermissions['user' ]['createpage'] = true;
1054 $wgGroupPermissions['user' ]['createtalk'] = true;
1055 $wgGroupPermissions['user' ]['upload'] = true;
1056 $wgGroupPermissions['user' ]['reupload'] = true;
1057 $wgGroupPermissions['user' ]['reupload-shared'] = true;
1058 $wgGroupPermissions['user' ]['minoredit'] = true;
1059 $wgGroupPermissions['user' ]['purge'] = true; // can use ?action=purge without clicking "ok"
1061 // Implicit group for accounts that pass $wgAutoConfirmAge
1062 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
1064 // Implicit group for accounts with confirmed email addresses
1065 // This has little use when email address confirmation is off
1066 $wgGroupPermissions['emailconfirmed']['emailconfirmed'] = true;
1068 // Users with bot privilege can have their edits hidden
1069 // from various log pages by default
1070 $wgGroupPermissions['bot' ]['bot'] = true;
1071 $wgGroupPermissions['bot' ]['autoconfirmed'] = true;
1072 $wgGroupPermissions['bot' ]['nominornewtalk'] = true;
1073 $wgGroupPermissions['bot' ]['autopatrol'] = true;
1074 $wgGroupPermissions['bot' ]['suppressredirect'] = true;
1076 // Most extra permission abilities go to this group
1077 $wgGroupPermissions['sysop']['block'] = true;
1078 $wgGroupPermissions['sysop']['createaccount'] = true;
1079 $wgGroupPermissions['sysop']['delete'] = true;
1080 $wgGroupPermissions['sysop']['deletedhistory'] = true; // can view deleted history entries, but not see or restore the text
1081 $wgGroupPermissions['sysop']['editinterface'] = true;
1082 $wgGroupPermissions['sysop']['editusercssjs'] = true;
1083 $wgGroupPermissions['sysop']['import'] = true;
1084 $wgGroupPermissions['sysop']['importupload'] = true;
1085 $wgGroupPermissions['sysop']['move'] = true;
1086 $wgGroupPermissions['sysop']['patrol'] = true;
1087 $wgGroupPermissions['sysop']['autopatrol'] = true;
1088 $wgGroupPermissions['sysop']['protect'] = true;
1089 $wgGroupPermissions['sysop']['proxyunbannable'] = true;
1090 $wgGroupPermissions['sysop']['rollback'] = true;
1091 $wgGroupPermissions['sysop']['trackback'] = true;
1092 $wgGroupPermissions['sysop']['upload'] = true;
1093 $wgGroupPermissions['sysop']['reupload'] = true;
1094 $wgGroupPermissions['sysop']['reupload-shared'] = true;
1095 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
1096 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
1097 $wgGroupPermissions['sysop']['upload_by_url'] = true;
1098 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
1099 $wgGroupPermissions['sysop']['blockemail'] = true;
1100 $wgGroupPermissions['sysop']['markbotedits'] = true;
1101 $wgGroupPermissions['sysop']['suppressredirect'] = true;
1103 // Permission to change users' group assignments
1104 $wgGroupPermissions['bureaucrat']['userrights'] = true;
1106 // Experimental permissions, not ready for production use
1107 //$wgGroupPermissions['sysop']['deleterevision'] = true;
1108 //$wgGroupPermissions['bureaucrat']['hiderevision'] = true;
1111 * The developer group is deprecated, but can be activated if need be
1112 * to use the 'lockdb' and 'unlockdb' special pages. Those require
1113 * that a lock file be defined and creatable/removable by the web
1114 * server.
1116 # $wgGroupPermissions['developer']['siteadmin'] = true;
1119 * Set of available actions that can be restricted via action=protect
1120 * You probably shouldn't change this.
1121 * Translated trough restriction-* messages.
1123 $wgRestrictionTypes = array( 'edit', 'move' );
1126 * Rights which can be required for each protection level (via action=protect)
1128 * You can add a new protection level that requires a specific
1129 * permission by manipulating this array. The ordering of elements
1130 * dictates the order on the protection form's lists.
1132 * '' will be ignored (i.e. unprotected)
1133 * 'sysop' is quietly rewritten to 'protect' for backwards compatibility
1135 $wgRestrictionLevels = array( '', 'autoconfirmed', 'sysop' );
1138 * Set the minimum permissions required to edit pages in each
1139 * namespace. If you list more than one permission, a user must
1140 * have all of them to edit pages in that namespace.
1142 $wgNamespaceProtection = array();
1143 $wgNamespaceProtection[ NS_MEDIAWIKI ] = array( 'editinterface' );
1146 * Pages in namespaces in this array can not be used as templates.
1147 * Elements must be numeric namespace ids.
1148 * Among other things, this may be useful to enforce read-restrictions
1149 * which may otherwise be bypassed by using the template machanism.
1151 $wgNonincludableNamespaces = array();
1154 * Number of seconds an account is required to age before
1155 * it's given the implicit 'autoconfirm' group membership.
1156 * This can be used to limit privileges of new accounts.
1158 * Accounts created by earlier versions of the software
1159 * may not have a recorded creation date, and will always
1160 * be considered to pass the age test.
1162 * When left at 0, all registered accounts will pass.
1164 $wgAutoConfirmAge = 0;
1165 //$wgAutoConfirmAge = 600; // ten minutes
1166 //$wgAutoConfirmAge = 3600*24; // one day
1168 # Number of edits an account requires before it is autoconfirmed
1169 # Passing both this AND the time requirement is needed
1170 $wgAutoConfirmCount = 0;
1171 //$wgAutoConfirmCount = 50;
1174 * These settings can be used to give finer control over who can assign which
1175 * groups at Special:Userrights. Example configuration:
1177 * // Bureaucrat can add any group
1178 * $wgAddGroups['bureaucrat'] = true;
1179 * // Bureaucrats can only remove bots and sysops
1180 * $wgRemoveGroups['bureaucrat'] = array( 'bot', 'sysop' );
1181 * // Sysops can make bots
1182 * $wgAddGroups['sysop'] = array( 'bot' );
1183 * // Sysops can disable other sysops in an emergency, and disable bots
1184 * $wgRemoveGroups['sysop'] = array( 'sysop', 'bot' );
1186 $wgAddGroups = $wgRemoveGroups = array();
1188 # Proxy scanner settings
1192 * If you enable this, every editor's IP address will be scanned for open HTTP
1193 * proxies.
1195 * Don't enable this. Many sysops will report "hostile TCP port scans" to your
1196 * ISP and ask for your server to be shut down.
1198 * You have been warned.
1200 $wgBlockOpenProxies = false;
1201 /** Port we want to scan for a proxy */
1202 $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 );
1203 /** Script used to scan */
1204 $wgProxyScriptPath = "$IP/includes/proxy_check.php";
1205 /** */
1206 $wgProxyMemcExpiry = 86400;
1207 /** This should always be customised in LocalSettings.php */
1208 $wgSecretKey = false;
1209 /** big list of banned IP addresses, in the keys not the values */
1210 $wgProxyList = array();
1211 /** deprecated */
1212 $wgProxyKey = false;
1214 /** Number of accounts each IP address may create, 0 to disable.
1215 * Requires memcached */
1216 $wgAccountCreationThrottle = 0;
1218 # Client-side caching:
1220 /** Allow client-side caching of pages */
1221 $wgCachePages = true;
1224 * Set this to current time to invalidate all prior cached pages. Affects both
1225 * client- and server-side caching.
1226 * You can get the current date on your server by using the command:
1227 * date +%Y%m%d%H%M%S
1229 $wgCacheEpoch = '20030516000000';
1232 * Bump this number when changing the global style sheets and JavaScript.
1233 * It should be appended in the query string of static CSS and JS includes,
1234 * to ensure that client-side caches don't keep obsolete copies of global
1235 * styles.
1237 $wgStyleVersion = '101';
1240 # Server-side caching:
1243 * This will cache static pages for non-logged-in users to reduce
1244 * database traffic on public sites.
1245 * Must set $wgShowIPinHeader = false
1247 $wgUseFileCache = false;
1249 /** Directory where the cached page will be saved */
1250 $wgFileCacheDirectory = false; /// defaults to "{$wgUploadDirectory}/cache";
1253 * When using the file cache, we can store the cached HTML gzipped to save disk
1254 * space. Pages will then also be served compressed to clients that support it.
1255 * THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
1256 * the default LocalSettings.php! If you enable this, remove that setting first.
1258 * Requires zlib support enabled in PHP.
1260 $wgUseGzip = false;
1262 /** Whether MediaWiki should send an ETag header */
1263 $wgUseETag = false;
1265 # Email notification settings
1268 /** For email notification on page changes */
1269 $wgPasswordSender = $wgEmergencyContact;
1271 # true: from page editor if s/he opted-in
1272 # false: Enotif mails appear to come from $wgEmergencyContact
1273 $wgEnotifFromEditor = false;
1275 // TODO move UPO to preferences probably ?
1276 # If set to true, users get a corresponding option in their preferences and can choose to enable or disable at their discretion
1277 # If set to false, the corresponding input form on the user preference page is suppressed
1278 # It call this to be a "user-preferences-option (UPO)"
1279 $wgEmailAuthentication = true; # UPO (if this is set to false, texts referring to authentication are suppressed)
1280 $wgEnotifWatchlist = false; # UPO
1281 $wgEnotifUserTalk = false; # UPO
1282 $wgEnotifRevealEditorAddress = false; # UPO; reply-to address may be filled with page editor's address (if user allowed this in the preferences)
1283 $wgEnotifMinorEdits = true; # UPO; false: "minor edits" on pages do not trigger notification mails.
1284 # # Attention: _every_ change on a user_talk page trigger a notification mail (if the user is not yet notified)
1286 # Send a generic mail instead of a personalised mail for each user. This
1287 # always uses UTC as the time zone, and doesn't include the username.
1289 # For pages with many users watching, this can significantly reduce mail load.
1290 # Has no effect when using sendmail rather than SMTP;
1292 $wgEnotifImpersonal = false;
1294 # Maximum number of users to mail at once when using impersonal mail. Should
1295 # match the limit on your mail server.
1296 $wgEnotifMaxRecips = 500;
1298 # Send mails via the job queue.
1299 $wgEnotifUseJobQ = false;
1301 /**
1302 * Array of usernames who will be sent a notification email for every change which occurs on a wiki
1304 $wgUsersNotifedOnAllChanges = array();
1306 /** Show watching users in recent changes, watchlist and page history views */
1307 $wgRCShowWatchingUsers = false; # UPO
1308 /** Show watching users in Page views */
1309 $wgPageShowWatchingUsers = false;
1310 /** Show the amount of changed characters in recent changes */
1311 $wgRCShowChangedSize = true;
1314 * If the difference between the character counts of the text
1315 * before and after the edit is below that value, the value will be
1316 * highlighted on the RC page.
1318 $wgRCChangedSizeThreshold = -500;
1321 * Show "Updated (since my last visit)" marker in RC view, watchlist and history
1322 * view for watched pages with new changes */
1323 $wgShowUpdatedMarker = true;
1325 $wgCookieExpiration = 2592000;
1327 /** Clock skew or the one-second resolution of time() can occasionally cause cache
1328 * problems when the user requests two pages within a short period of time. This
1329 * variable adds a given number of seconds to vulnerable timestamps, thereby giving
1330 * a grace period.
1332 $wgClockSkewFudge = 5;
1334 # Squid-related settings
1337 /** Enable/disable Squid */
1338 $wgUseSquid = false;
1340 /** If you run Squid3 with ESI support, enable this (default:false): */
1341 $wgUseESI = false;
1343 /** Internal server name as known to Squid, if different */
1344 # $wgInternalServer = 'http://yourinternal.tld:8000';
1345 $wgInternalServer = $wgServer;
1348 * Cache timeout for the squid, will be sent as s-maxage (without ESI) or
1349 * Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in
1350 * the Squid config. 18000 seconds = 5 hours, more cache hits with 2678400 = 31
1351 * days
1353 $wgSquidMaxage = 18000;
1356 * Default maximum age for raw CSS/JS accesses
1358 $wgForcedRawSMaxage = 300;
1361 * List of proxy servers to purge on changes; default port is 80. Use IP addresses.
1363 * When MediaWiki is running behind a proxy, it will trust X-Forwarded-For
1364 * headers sent/modified from these proxies when obtaining the remote IP address
1366 * For a list of trusted servers which *aren't* purged, see $wgSquidServersNoPurge.
1368 $wgSquidServers = array();
1371 * As above, except these servers aren't purged on page changes; use to set a
1372 * list of trusted proxies, etc.
1374 $wgSquidServersNoPurge = array();
1376 /** Maximum number of titles to purge in any one client operation */
1377 $wgMaxSquidPurgeTitles = 400;
1379 /** HTCP multicast purging */
1380 $wgHTCPPort = 4827;
1381 $wgHTCPMulticastTTL = 1;
1382 # $wgHTCPMulticastAddress = "224.0.0.85";
1383 $wgHTCPMulticastAddress = false;
1385 # Cookie settings:
1388 * Set to set an explicit domain on the login cookies eg, "justthis.domain. org"
1389 * or ".any.subdomain.net"
1391 $wgCookieDomain = '';
1392 $wgCookiePath = '/';
1393 $wgCookieSecure = ($wgProto == 'https');
1394 $wgDisableCookieCheck = false;
1396 /** Override to customise the session name */
1397 $wgSessionName = false;
1399 /** Whether to allow inline image pointing to other websites */
1400 $wgAllowExternalImages = false;
1402 /** If the above is false, you can specify an exception here. Image URLs
1403 * that start with this string are then rendered, while all others are not.
1404 * You can use this to set up a trusted, simple repository of images.
1406 * Example:
1407 * $wgAllowExternalImagesFrom = 'http://127.0.0.1/';
1409 $wgAllowExternalImagesFrom = '';
1411 /** Disable database-intensive features */
1412 $wgMiserMode = false;
1413 /** Disable all query pages if miser mode is on, not just some */
1414 $wgDisableQueryPages = false;
1415 /** Number of rows to cache in 'querycache' table when miser mode is on */
1416 $wgQueryCacheLimit = 1000;
1417 /** Number of links to a page required before it is deemed "wanted" */
1418 $wgWantedPagesThreshold = 1;
1419 /** Enable slow parser functions */
1420 $wgAllowSlowParserFunctions = false;
1423 * Maps jobs to their handling classes; extensions
1424 * can add to this to provide custom jobs
1426 $wgJobClasses = array(
1427 'refreshLinks' => 'RefreshLinksJob',
1428 'htmlCacheUpdate' => 'HTMLCacheUpdateJob',
1429 'html_cache_update' => 'HTMLCacheUpdateJob', // backwards-compatible
1430 'sendMail' => 'EmaillingJob',
1431 'enotifNotify' => 'EnotifNotifyJob',
1435 * To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of
1436 * the MediaWiki package and have latex, dvips, gs (ghostscript), andconvert
1437 * (ImageMagick) installed and available in the PATH.
1438 * Please see math/README for more information.
1440 $wgUseTeX = false;
1441 /** Location of the texvc binary */
1442 $wgTexvc = './math/texvc';
1445 # Profiling / debugging
1447 # You have to create a 'profiling' table in your database before using
1448 # profiling see maintenance/archives/patch-profiling.sql .
1450 # To enable profiling, edit StartProfiler.php
1452 /** Only record profiling info for pages that took longer than this */
1453 $wgProfileLimit = 0.0;
1454 /** Don't put non-profiling info into log file */
1455 $wgProfileOnly = false;
1456 /** Log sums from profiling into "profiling" table in db. */
1457 $wgProfileToDatabase = false;
1458 /** If true, print a raw call tree instead of per-function report */
1459 $wgProfileCallTree = false;
1460 /** Should application server host be put into profiling table */
1461 $wgProfilePerHost = false;
1463 /** Settings for UDP profiler */
1464 $wgUDPProfilerHost = '127.0.0.1';
1465 $wgUDPProfilerPort = '3811';
1467 /** Detects non-matching wfProfileIn/wfProfileOut calls */
1468 $wgDebugProfiling = false;
1469 /** Output debug message on every wfProfileIn/wfProfileOut */
1470 $wgDebugFunctionEntry = 0;
1471 /** Lots of debugging output from SquidUpdate.php */
1472 $wgDebugSquid = false;
1474 /** Whereas to count the number of time an article is viewed.
1475 * Does not work if pages are cached (for example with squid).
1477 $wgDisableCounters = false;
1479 $wgDisableTextSearch = false;
1480 $wgDisableSearchContext = false;
1482 * If you've disabled search semi-permanently, this also disables updates to the
1483 * table. If you ever re-enable, be sure to rebuild the search table.
1485 $wgDisableSearchUpdate = false;
1486 /** Uploads have to be specially set up to be secure */
1487 $wgEnableUploads = false;
1489 * Show EXIF data, on by default if available.
1490 * Requires PHP's EXIF extension: http://www.php.net/manual/en/ref.exif.php
1492 * NOTE FOR WINDOWS USERS:
1493 * To enable EXIF functions, add the folloing lines to the
1494 * "Windows extensions" section of php.ini:
1496 * extension=extensions/php_mbstring.dll
1497 * extension=extensions/php_exif.dll
1499 $wgShowEXIF = function_exists( 'exif_read_data' );
1502 * Set to true to enable the upload _link_ while local uploads are disabled.
1503 * Assumes that the special page link will be bounced to another server where
1504 * uploads do work.
1506 $wgRemoteUploads = false;
1507 $wgDisableAnonTalk = false;
1509 * Do DELETE/INSERT for link updates instead of incremental
1511 $wgUseDumbLinkUpdate = false;
1514 * Anti-lock flags - bitfield
1515 * ALF_PRELOAD_LINKS
1516 * Preload links during link update for save
1517 * ALF_PRELOAD_EXISTENCE
1518 * Preload cur_id during replaceLinkHolders
1519 * ALF_NO_LINK_LOCK
1520 * Don't use locking reads when updating the link table. This is
1521 * necessary for wikis with a high edit rate for performance
1522 * reasons, but may cause link table inconsistency
1523 * ALF_NO_BLOCK_LOCK
1524 * As for ALF_LINK_LOCK, this flag is a necessity for high-traffic
1525 * wikis.
1527 $wgAntiLockFlags = 0;
1530 * Path to the GNU diff3 utility. If the file doesn't exist, edit conflicts will
1531 * fall back to the old behaviour (no merging).
1533 $wgDiff3 = '/usr/bin/diff3';
1536 * We can also compress text stored in the 'text' table. If this is set on, new
1537 * revisions will be compressed on page save if zlib support is available. Any
1538 * compressed revisions will be decompressed on load regardless of this setting
1539 * *but will not be readable at all* if zlib support is not available.
1541 $wgCompressRevisions = false;
1544 * This is the list of preferred extensions for uploading files. Uploading files
1545 * with extensions not in this list will trigger a warning.
1547 $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
1549 /** Files with these extensions will never be allowed as uploads. */
1550 $wgFileBlacklist = array(
1551 # HTML may contain cookie-stealing JavaScript and web bugs
1552 'html', 'htm', 'js', 'jsb', 'mhtml', 'mht',
1553 # PHP scripts may execute arbitrary code on the server
1554 'php', 'phtml', 'php3', 'php4', 'php5', 'phps',
1555 # Other types that may be interpreted by some servers
1556 'shtml', 'jhtml', 'pl', 'py', 'cgi',
1557 # May contain harmful executables for Windows victims
1558 'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
1560 /** Files with these mime types will never be allowed as uploads
1561 * if $wgVerifyMimeType is enabled.
1563 $wgMimeTypeBlacklist= array(
1564 # HTML may contain cookie-stealing JavaScript and web bugs
1565 'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
1566 # PHP scripts may execute arbitrary code on the server
1567 'application/x-php', 'text/x-php',
1568 # Other types that may be interpreted by some servers
1569 'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
1570 # Windows metafile, client-side vulnerability on some systems
1571 'application/x-msmetafile'
1574 /** This is a flag to determine whether or not to check file extensions on upload. */
1575 $wgCheckFileExtensions = true;
1578 * If this is turned off, users may override the warning for files not covered
1579 * by $wgFileExtensions.
1581 $wgStrictFileExtensions = true;
1583 /** Warn if uploaded files are larger than this (in bytes)*/
1584 $wgUploadSizeWarning = 150 * 1024;
1586 /** For compatibility with old installations set to false */
1587 $wgPasswordSalt = true;
1589 /** Which namespaces should support subpages?
1590 * See Language.php for a list of namespaces.
1592 $wgNamespacesWithSubpages = array(
1593 NS_TALK => true,
1594 NS_USER => true,
1595 NS_USER_TALK => true,
1596 NS_PROJECT_TALK => true,
1597 NS_IMAGE_TALK => true,
1598 NS_MEDIAWIKI_TALK => true,
1599 NS_TEMPLATE_TALK => true,
1600 NS_HELP_TALK => true,
1601 NS_CATEGORY_TALK => true
1604 $wgNamespacesToBeSearchedDefault = array(
1605 NS_MAIN => true,
1609 * Site notice shown at the top of each page
1611 * This message can contain wiki text, and can also be set through the
1612 * MediaWiki:Sitenotice page. You can also provide a separate message for
1613 * logged-out users using the MediaWiki:Anonnotice page.
1615 $wgSiteNotice = '';
1618 # Images settings
1621 /**
1622 * Plugins for media file type handling.
1623 * Each entry in the array maps a MIME type to a class name
1625 $wgMediaHandlers = array(
1626 'image/jpeg' => 'BitmapHandler',
1627 'image/png' => 'BitmapHandler',
1628 'image/gif' => 'BitmapHandler',
1629 'image/x-ms-bmp' => 'BmpHandler',
1630 'image/svg+xml' => 'SvgHandler', // official
1631 'image/svg' => 'SvgHandler', // compat
1632 'image/vnd.djvu' => 'DjVuHandler', // official
1633 'image/x.djvu' => 'DjVuHandler', // compat
1634 'image/x-djvu' => 'DjVuHandler', // compat
1639 * Resizing can be done using PHP's internal image libraries or using
1640 * ImageMagick or another third-party converter, e.g. GraphicMagick.
1641 * These support more file formats than PHP, which only supports PNG,
1642 * GIF, JPG, XBM and WBMP.
1644 * Use Image Magick instead of PHP builtin functions.
1646 $wgUseImageMagick = false;
1647 /** The convert command shipped with ImageMagick */
1648 $wgImageMagickConvertCommand = '/usr/bin/convert';
1650 /** Sharpening parameter to ImageMagick */
1651 $wgSharpenParameter = '0x0.4';
1653 /** Reduction in linear dimensions below which sharpening will be enabled */
1654 $wgSharpenReductionThreshold = 0.85;
1657 * Use another resizing converter, e.g. GraphicMagick
1658 * %s will be replaced with the source path, %d with the destination
1659 * %w and %h will be replaced with the width and height
1661 * An example is provided for GraphicMagick
1662 * Leave as false to skip this
1664 #$wgCustomConvertCommand = "gm convert %s -resize %wx%h %d"
1665 $wgCustomConvertCommand = false;
1667 # Scalable Vector Graphics (SVG) may be uploaded as images.
1668 # Since SVG support is not yet standard in browsers, it is
1669 # necessary to rasterize SVGs to PNG as a fallback format.
1671 # An external program is required to perform this conversion:
1672 $wgSVGConverters = array(
1673 'ImageMagick' => '$path/convert -background white -geometry $width $input PNG:$output',
1674 'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1675 'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1676 'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',
1677 'rsvg' => '$path/rsvg -w$width -h$height $input $output',
1679 /** Pick one of the above */
1680 $wgSVGConverter = 'ImageMagick';
1681 /** If not in the executable PATH, specify */
1682 $wgSVGConverterPath = '';
1683 /** Don't scale a SVG larger than this */
1684 $wgSVGMaxSize = 1024;
1686 * Don't thumbnail an image if it will use too much working memory
1687 * Default is 50 MB if decompressed to RGBA form, which corresponds to
1688 * 12.5 million pixels or 3500x3500
1690 $wgMaxImageArea = 1.25e7;
1692 * If rendered thumbnail files are older than this timestamp, they
1693 * will be rerendered on demand as if the file didn't already exist.
1694 * Update if there is some need to force thumbs and SVG rasterizations
1695 * to rerender, such as fixes to rendering bugs.
1697 $wgThumbnailEpoch = '20030516000000';
1700 * If set, inline scaled images will still produce <img> tags ready for
1701 * output instead of showing an error message.
1703 * This may be useful if errors are transitory, especially if the site
1704 * is configured to automatically render thumbnails on request.
1706 * On the other hand, it may obscure error conditions from debugging.
1707 * Enable the debug log or the 'thumbnail' log group to make sure errors
1708 * are logged to a file for review.
1710 $wgIgnoreImageErrors = false;
1713 * Allow thumbnail rendering on page view. If this is false, a valid
1714 * thumbnail URL is still output, but no file will be created at
1715 * the target location. This may save some time if you have a
1716 * thumb.php or 404 handler set up which is faster than the regular
1717 * webserver(s).
1719 $wgGenerateThumbnailOnParse = true;
1721 /** Obsolete, always true, kept for compatibility with extensions */
1722 $wgUseImageResize = true;
1725 /** Set $wgCommandLineMode if it's not set already, to avoid notices */
1726 if( !isset( $wgCommandLineMode ) ) {
1727 $wgCommandLineMode = false;
1730 /** For colorized maintenance script output, is your terminal background dark ? */
1731 $wgCommandLineDarkBg = false;
1734 # Recent changes settings
1737 /** Log IP addresses in the recentchanges table; can be accessed only by extensions (e.g. CheckUser) or a DB admin */
1738 $wgPutIPinRC = true;
1741 * Recentchanges items are periodically purged; entries older than this many
1742 * seconds will go.
1743 * For one week : 7 * 24 * 3600
1745 $wgRCMaxAge = 7 * 24 * 3600;
1748 # Send RC updates via UDP
1749 $wgRC2UDPAddress = false;
1750 $wgRC2UDPPort = false;
1751 $wgRC2UDPPrefix = '';
1754 # Copyright and credits settings
1757 /** RDF metadata toggles */
1758 $wgEnableDublinCoreRdf = false;
1759 $wgEnableCreativeCommonsRdf = false;
1761 /** Override for copyright metadata.
1762 * TODO: these options need documentation
1764 $wgRightsPage = NULL;
1765 $wgRightsUrl = NULL;
1766 $wgRightsText = NULL;
1767 $wgRightsIcon = NULL;
1769 /** Set this to some HTML to override the rights icon with an arbitrary logo */
1770 $wgCopyrightIcon = NULL;
1772 /** Set this to true if you want detailed copyright information forms on Upload. */
1773 $wgUseCopyrightUpload = false;
1775 /** Set this to false if you want to disable checking that detailed copyright
1776 * information values are not empty. */
1777 $wgCheckCopyrightUpload = true;
1780 * Set this to the number of authors that you want to be credited below an
1781 * article text. Set it to zero to hide the attribution block, and a negative
1782 * number (like -1) to show all authors. Note that this will require 2-3 extra
1783 * database hits, which can have a not insignificant impact on performance for
1784 * large wikis.
1786 $wgMaxCredits = 0;
1788 /** If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
1789 * Otherwise, link to a separate credits page. */
1790 $wgShowCreditsIfMax = true;
1795 * Set this to false to avoid forcing the first letter of links to capitals.
1796 * WARNING: may break links! This makes links COMPLETELY case-sensitive. Links
1797 * appearing with a capital at the beginning of a sentence will *not* go to the
1798 * same place as links in the middle of a sentence using a lowercase initial.
1800 $wgCapitalLinks = true;
1803 * List of interwiki prefixes for wikis we'll accept as sources for
1804 * Special:Import (for sysops). Since complete page history can be imported,
1805 * these should be 'trusted'.
1807 * If a user has the 'import' permission but not the 'importupload' permission,
1808 * they will only be able to run imports through this transwiki interface.
1810 $wgImportSources = array();
1813 * Optional default target namespace for interwiki imports.
1814 * Can use this to create an incoming "transwiki"-style queue.
1815 * Set to numeric key, not the name.
1817 * Users may override this in the Special:Import dialog.
1819 $wgImportTargetNamespace = null;
1822 * If set to false, disables the full-history option on Special:Export.
1823 * This is currently poorly optimized for long edit histories, so is
1824 * disabled on Wikimedia's sites.
1826 $wgExportAllowHistory = true;
1829 * If set nonzero, Special:Export requests for history of pages with
1830 * more revisions than this will be rejected. On some big sites things
1831 * could get bogged down by very very long pages.
1833 $wgExportMaxHistory = 0;
1835 $wgExportAllowListContributors = false ;
1838 /** Text matching this regular expression will be recognised as spam
1839 * See http://en.wikipedia.org/wiki/Regular_expression */
1840 $wgSpamRegex = false;
1841 /** Similarly you can get a function to do the job. The function will be given
1842 * the following args:
1843 * - a Title object for the article the edit is made on
1844 * - the text submitted in the textarea (wpTextbox1)
1845 * - the section number.
1846 * The return should be boolean indicating whether the edit matched some evilness:
1847 * - true : block it
1848 * - false : let it through
1850 * For a complete example, have a look at the SpamBlacklist extension.
1852 $wgFilterCallback = false;
1854 /** Go button goes straight to the edit screen if the article doesn't exist. */
1855 $wgGoToEdit = false;
1857 /** Allow raw, unchecked HTML in <html>...</html> sections.
1858 * THIS IS VERY DANGEROUS on a publically editable site, so USE wgGroupPermissions
1859 * TO RESTRICT EDITING to only those that you trust
1861 $wgRawHtml = false;
1864 * $wgUseTidy: use tidy to make sure HTML output is sane.
1865 * Tidy is a free tool that fixes broken HTML.
1866 * See http://www.w3.org/People/Raggett/tidy/
1867 * $wgTidyBin should be set to the path of the binary and
1868 * $wgTidyConf to the path of the configuration file.
1869 * $wgTidyOpts can include any number of parameters.
1871 * $wgTidyInternal controls the use of the PECL extension to use an in-
1872 * process tidy library instead of spawning a separate program.
1873 * Normally you shouldn't need to override the setting except for
1874 * debugging. To install, use 'pear install tidy' and add a line
1875 * 'extension=tidy.so' to php.ini.
1877 $wgUseTidy = false;
1878 $wgAlwaysUseTidy = false;
1879 $wgTidyBin = 'tidy';
1880 $wgTidyConf = $IP.'/includes/tidy.conf';
1881 $wgTidyOpts = '';
1882 $wgTidyInternal = extension_loaded( 'tidy' );
1884 /** See list of skins and their symbolic names in languages/Language.php */
1885 $wgDefaultSkin = 'monobook';
1888 * Settings added to this array will override the default globals for the user
1889 * preferences used by anonymous visitors and newly created accounts.
1890 * For instance, to disable section editing links:
1891 * $wgDefaultUserOptions ['editsection'] = 0;
1894 $wgDefaultUserOptions = array(
1895 'quickbar' => 1,
1896 'underline' => 2,
1897 'cols' => 80,
1898 'rows' => 25,
1899 'searchlimit' => 20,
1900 'contextlines' => 5,
1901 'contextchars' => 50,
1902 'skin' => false,
1903 'math' => 1,
1904 'rcdays' => 7,
1905 'rclimit' => 50,
1906 'wllimit' => 250,
1907 'highlightbroken' => 1,
1908 'stubthreshold' => 0,
1909 'previewontop' => 1,
1910 'editsection' => 1,
1911 'editsectiononrightclick'=> 0,
1912 'showtoc' => 1,
1913 'showtoolbar' => 1,
1914 'date' => 'default',
1915 'imagesize' => 2,
1916 'thumbsize' => 2,
1917 'rememberpassword' => 0,
1918 'enotifwatchlistpages' => 0,
1919 'enotifusertalkpages' => 1,
1920 'enotifminoredits' => 0,
1921 'enotifrevealaddr' => 0,
1922 'shownumberswatching' => 1,
1923 'fancysig' => 0,
1924 'externaleditor' => 0,
1925 'externaldiff' => 0,
1926 'showjumplinks' => 1,
1927 'numberheadings' => 0,
1928 'uselivepreview' => 0,
1929 'watchlistdays' => 3.0,
1932 /** Whether or not to allow and use real name fields. Defaults to true. */
1933 $wgAllowRealName = true;
1935 /*****************************************************************************
1936 * Extensions
1940 * A list of callback functions which are called once MediaWiki is fully initialised
1942 $wgExtensionFunctions = array();
1945 * Extension functions for initialisation of skins. This is called somewhat earlier
1946 * than $wgExtensionFunctions.
1948 $wgSkinExtensionFunctions = array();
1951 * Extension messages files
1952 * Associative array mapping extension name to the filename where messages can be found.
1953 * The file must create a variable called $messages.
1954 * When the messages are needed, the extension should call wfLoadExtensionMessages().
1956 * Example:
1957 * $wgExtensionMessagesFiles['ConfirmEdit'] = dirname(__FILE__).'/ConfirmEdit.i18n.php';
1960 $wgExtensionMessagesFiles = array();
1963 * Parser output hooks.
1964 * This is an associative array where the key is an extension-defined tag
1965 * (typically the extension name), and the value is a PHP callback.
1966 * These will be called as an OutputPageParserOutput hook, if the relevant
1967 * tag has been registered with the parser output object.
1969 * Registration is done with $pout->addOutputHook( $tag, $data ).
1971 * The callback has the form:
1972 * function outputHook( $outputPage, $parserOutput, $data ) { ... }
1974 $wgParserOutputHooks = array();
1977 * List of valid skin names.
1978 * The key should be the name in all lower case, the value should be a display name.
1979 * The default skins will be added later, by Skin::getSkinNames(). Use
1980 * Skin::getSkinNames() as an accessor if you wish to have access to the full list.
1982 $wgValidSkinNames = array();
1985 * Special page list.
1986 * See the top of SpecialPage.php for documentation.
1988 $wgSpecialPages = array();
1991 * Array mapping class names to filenames, for autoloading.
1993 $wgAutoloadClasses = array();
1996 * An array of extension types and inside that their names, versions, authors
1997 * and urls, note that the version and url key can be omitted.
1999 * <code>
2000 * $wgExtensionCredits[$type][] = array(
2001 * 'name' => 'Example extension',
2002 * 'version' => 1.9,
2003 * 'author' => 'Foo Barstein',
2004 * 'url' => 'http://wwww.example.com/Example%20Extension/',
2005 * );
2006 * </code>
2008 * Where $type is 'specialpage', 'parserhook', or 'other'.
2010 $wgExtensionCredits = array();
2012 * end extensions
2013 ******************************************************************************/
2016 * Allow user Javascript page?
2017 * This enables a lot of neat customizations, but may
2018 * increase security risk to users and server load.
2020 $wgAllowUserJs = false;
2023 * Allow user Cascading Style Sheets (CSS)?
2024 * This enables a lot of neat customizations, but may
2025 * increase security risk to users and server load.
2027 $wgAllowUserCss = false;
2029 /** Use the site's Javascript page? */
2030 $wgUseSiteJs = true;
2032 /** Use the site's Cascading Style Sheets (CSS)? */
2033 $wgUseSiteCss = true;
2035 /** Filter for Special:Randompage. Part of a WHERE clause */
2036 $wgExtraRandompageSQL = false;
2038 /** Allow the "info" action, very inefficient at the moment */
2039 $wgAllowPageInfo = false;
2041 /** Maximum indent level of toc. */
2042 $wgMaxTocLevel = 999;
2044 /** Name of the external diff engine to use */
2045 $wgExternalDiffEngine = false;
2047 /** Use RC Patrolling to check for vandalism */
2048 $wgUseRCPatrol = true;
2050 /** Use new page patrolling to check new pages on special:Newpages */
2051 $wgUseNPPatrol = true;
2053 /** Set maximum number of results to return in syndication feeds (RSS, Atom) for
2054 * eg Recentchanges, Newpages. */
2055 $wgFeedLimit = 50;
2057 /** _Minimum_ timeout for cached Recentchanges feed, in seconds.
2058 * A cached version will continue to be served out even if changes
2059 * are made, until this many seconds runs out since the last render.
2061 * If set to 0, feed caching is disabled. Use this for debugging only;
2062 * feed generation can be pretty slow with diffs.
2064 $wgFeedCacheTimeout = 60;
2066 /** When generating Recentchanges RSS/Atom feed, diffs will not be generated for
2067 * pages larger than this size. */
2068 $wgFeedDiffCutoff = 32768;
2072 * Additional namespaces. If the namespaces defined in Language.php and
2073 * Namespace.php are insufficient, you can create new ones here, for example,
2074 * to import Help files in other languages.
2075 * PLEASE NOTE: Once you delete a namespace, the pages in that namespace will
2076 * no longer be accessible. If you rename it, then you can access them through
2077 * the new namespace name.
2079 * Custom namespaces should start at 100 to avoid conflicting with standard
2080 * namespaces, and should always follow the even/odd main/talk pattern.
2082 #$wgExtraNamespaces =
2083 # array(100 => "Hilfe",
2084 # 101 => "Hilfe_Diskussion",
2085 # 102 => "Aide",
2086 # 103 => "Discussion_Aide"
2087 # );
2088 $wgExtraNamespaces = NULL;
2091 * Namespace aliases
2092 * These are alternate names for the primary localised namespace names, which
2093 * are defined by $wgExtraNamespaces and the language file. If a page is
2094 * requested with such a prefix, the request will be redirected to the primary
2095 * name.
2097 * Set this to a map from namespace names to IDs.
2098 * Example:
2099 * $wgNamespaceAliases = array(
2100 * 'Wikipedian' => NS_USER,
2101 * 'Help' => 100,
2102 * );
2104 $wgNamespaceAliases = array();
2107 * Limit images on image description pages to a user-selectable limit. In order
2108 * to reduce disk usage, limits can only be selected from a list.
2109 * The user preference is saved as an array offset in the database, by default
2110 * the offset is set with $wgDefaultUserOptions['imagesize']. Make sure you
2111 * change it if you alter the array (see bug 8858).
2112 * This is the list of settings the user can choose from:
2114 $wgImageLimits = array (
2115 array(320,240),
2116 array(640,480),
2117 array(800,600),
2118 array(1024,768),
2119 array(1280,1024),
2120 array(10000,10000) );
2123 * Adjust thumbnails on image pages according to a user setting. In order to
2124 * reduce disk usage, the values can only be selected from a list. This is the
2125 * list of settings the user can choose from:
2127 $wgThumbLimits = array(
2128 120,
2129 150,
2130 180,
2131 200,
2132 250,
2137 * Adjust width of upright images when parameter 'upright' is used
2138 * This allows a nicer look for upright images without the need to fix the width
2139 * by hardcoded px in wiki sourcecode.
2141 $wgThumbUpright = 0.75;
2144 * On category pages, show thumbnail gallery for images belonging to that
2145 * category instead of listing them as articles.
2147 $wgCategoryMagicGallery = true;
2150 * Paging limit for categories
2152 $wgCategoryPagingLimit = 200;
2155 * Browser Blacklist for unicode non compliant browsers
2156 * Contains a list of regexps : "/regexp/" matching problematic browsers
2158 $wgBrowserBlackList = array(
2160 * Netscape 2-4 detection
2161 * The minor version may contain strings such as "Gold" or "SGoldC-SGI"
2162 * Lots of non-netscape user agents have "compatible", so it's useful to check for that
2163 * with a negative assertion. The [UIN] identifier specifies the level of security
2164 * in a Netscape/Mozilla browser, checking for it rules out a number of fakers.
2165 * The language string is unreliable, it is missing on NS4 Mac.
2167 * Reference: http://www.psychedelix.com/agents/index.shtml
2169 '/^Mozilla\/2\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2170 '/^Mozilla\/3\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2171 '/^Mozilla\/4\.[^ ]+ [^(]*?\((?!compatible).*; [UIN]/',
2174 * MSIE on Mac OS 9 is teh sux0r, converts þ to <thorn>, ð to <eth>, Þ to <THORN> and Ð to <ETH>
2176 * Known useragents:
2177 * - Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC)
2178 * - Mozilla/4.0 (compatible; MSIE 5.15; Mac_PowerPC)
2179 * - Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
2180 * - [...]
2182 * @link http://en.wikipedia.org/w/index.php?title=User%3A%C6var_Arnfj%F6r%F0_Bjarmason%2Ftestme&diff=12356041&oldid=12355864
2183 * @link http://en.wikipedia.org/wiki/Template%3AOS9
2185 '/^Mozilla\/4\.0 \(compatible; MSIE \d+\.\d+; Mac_PowerPC\)/',
2188 * Google wireless transcoder, seems to eat a lot of chars alive
2189 * http://it.wikipedia.org/w/index.php?title=Luciano_Ligabue&diff=prev&oldid=8857361
2191 '/^Mozilla\/4\.0 \(compatible; MSIE 6.0; Windows NT 5.0; Google Wireless Transcoder;\)/'
2195 * Fake out the timezone that the server thinks it's in. This will be used for
2196 * date display and not for what's stored in the DB. Leave to null to retain
2197 * your server's OS-based timezone value. This is the same as the timezone.
2199 * This variable is currently used ONLY for signature formatting, not for
2200 * anything else.
2202 # $wgLocaltimezone = 'GMT';
2203 # $wgLocaltimezone = 'PST8PDT';
2204 # $wgLocaltimezone = 'Europe/Sweden';
2205 # $wgLocaltimezone = 'CET';
2206 $wgLocaltimezone = null;
2209 * Set an offset from UTC in minutes to use for the default timezone setting
2210 * for anonymous users and new user accounts.
2212 * This setting is used for most date/time displays in the software, and is
2213 * overrideable in user preferences. It is *not* used for signature timestamps.
2215 * You can set it to match the configured server timezone like this:
2216 * $wgLocalTZoffset = date("Z") / 60;
2218 * If your server is not configured for the timezone you want, you can set
2219 * this in conjunction with the signature timezone and override the TZ
2220 * environment variable like so:
2221 * $wgLocaltimezone="Europe/Berlin";
2222 * putenv("TZ=$wgLocaltimezone");
2223 * $wgLocalTZoffset = date("Z") / 60;
2225 * Leave at NULL to show times in universal time (UTC/GMT).
2227 $wgLocalTZoffset = null;
2231 * When translating messages with wfMsg(), it is not always clear what should be
2232 * considered UI messages and what shoud be content messages.
2234 * For example, for regular wikipedia site like en, there should be only one
2235 * 'mainpage', therefore when getting the link of 'mainpage', we should treate
2236 * it as content of the site and call wfMsgForContent(), while for rendering the
2237 * text of the link, we call wfMsg(). The code in default behaves this way.
2238 * However, sites like common do offer different versions of 'mainpage' and the
2239 * like for different languages. This array provides a way to override the
2240 * default behavior. For example, to allow language specific mainpage and
2241 * community portal, set
2243 * $wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );
2245 $wgForceUIMsgAsContentMsg = array();
2249 * Authentication plugin.
2251 $wgAuth = null;
2254 * Global list of hooks.
2255 * Add a hook by doing:
2256 * $wgHooks['event_name'][] = $function;
2257 * or:
2258 * $wgHooks['event_name'][] = array($function, $data);
2259 * or:
2260 * $wgHooks['event_name'][] = array($object, 'method');
2262 $wgHooks = array();
2265 * The logging system has two levels: an event type, which describes the
2266 * general category and can be viewed as a named subset of all logs; and
2267 * an action, which is a specific kind of event that can exist in that
2268 * log type.
2270 $wgLogTypes = array( '',
2271 'block',
2272 'protect',
2273 'rights',
2274 'delete',
2275 'upload',
2276 'move',
2277 'import',
2278 'patrol',
2282 * Lists the message key string for each log type. The localized messages
2283 * will be listed in the user interface.
2285 * Extensions with custom log types may add to this array.
2287 $wgLogNames = array(
2288 '' => 'all-logs-page',
2289 'block' => 'blocklogpage',
2290 'protect' => 'protectlogpage',
2291 'rights' => 'rightslog',
2292 'delete' => 'dellogpage',
2293 'upload' => 'uploadlogpage',
2294 'move' => 'movelogpage',
2295 'import' => 'importlogpage',
2296 'patrol' => 'patrol-log-page',
2300 * Lists the message key string for descriptive text to be shown at the
2301 * top of each log type.
2303 * Extensions with custom log types may add to this array.
2305 $wgLogHeaders = array(
2306 '' => 'alllogstext',
2307 'block' => 'blocklogtext',
2308 'protect' => 'protectlogtext',
2309 'rights' => 'rightslogtext',
2310 'delete' => 'dellogpagetext',
2311 'upload' => 'uploadlogpagetext',
2312 'move' => 'movelogpagetext',
2313 'import' => 'importlogpagetext',
2314 'patrol' => 'patrol-log-header',
2318 * Lists the message key string for formatting individual events of each
2319 * type and action when listed in the logs.
2321 * Extensions with custom log types may add to this array.
2323 $wgLogActions = array(
2324 'block/block' => 'blocklogentry',
2325 'block/unblock' => 'unblocklogentry',
2326 'protect/protect' => 'protectedarticle',
2327 'protect/modify' => 'modifiedarticleprotection',
2328 'protect/unprotect' => 'unprotectedarticle',
2329 'rights/rights' => 'rightslogentry',
2330 'delete/delete' => 'deletedarticle',
2331 'delete/restore' => 'undeletedarticle',
2332 'delete/revision' => 'revdelete-logentry',
2333 'upload/upload' => 'uploadedimage',
2334 'upload/overwrite' => 'overwroteimage',
2335 'upload/revert' => 'uploadedimage',
2336 'move/move' => '1movedto2',
2337 'move/move_redir' => '1movedto2_redir',
2338 'import/upload' => 'import-logentry-upload',
2339 'import/interwiki' => 'import-logentry-interwiki',
2343 * Experimental preview feature to fetch rendered text
2344 * over an XMLHttpRequest from JavaScript instead of
2345 * forcing a submit and reload of the whole page.
2346 * Leave disabled unless you're testing it.
2348 $wgLivePreview = false;
2351 * Disable the internal MySQL-based search, to allow it to be
2352 * implemented by an extension instead.
2354 $wgDisableInternalSearch = false;
2357 * Set this to a URL to forward search requests to some external location.
2358 * If the URL includes '$1', this will be replaced with the URL-encoded
2359 * search term.
2361 * For example, to forward to Google you'd have something like:
2362 * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
2363 * '&domains=http://example.com' .
2364 * '&sitesearch=http://example.com' .
2365 * '&ie=utf-8&oe=utf-8';
2367 $wgSearchForwardUrl = null;
2370 * If true, external URL links in wiki text will be given the
2371 * rel="nofollow" attribute as a hint to search engines that
2372 * they should not be followed for ranking purposes as they
2373 * are user-supplied and thus subject to spamming.
2375 $wgNoFollowLinks = true;
2378 * Namespaces in which $wgNoFollowLinks doesn't apply.
2379 * See Language.php for a list of namespaces.
2381 $wgNoFollowNsExceptions = array();
2384 * Robot policies per namespaces.
2385 * The default policy is 'index,follow', the array is made of namespace
2386 * constants as defined in includes/Defines.php
2387 * Example:
2388 * $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
2390 $wgNamespaceRobotPolicies = array();
2393 * Robot policies per article.
2394 * These override the per-namespace robot policies.
2395 * Must be in the form of an array where the key part is a properly
2396 * canonicalised text form title and the value is a robot policy.
2397 * Example:
2398 * $wgArticleRobotPolicies = array( 'Main Page' => 'noindex' );
2400 $wgArticleRobotPolicies = array();
2403 * Specifies the minimal length of a user password. If set to
2404 * 0, empty passwords are allowed.
2406 $wgMinimalPasswordLength = 0;
2409 * Activate external editor interface for files and pages
2410 * See http://meta.wikimedia.org/wiki/Help:External_editors
2412 $wgUseExternalEditor = true;
2414 /** Whether or not to sort special pages in Special:Specialpages */
2416 $wgSortSpecialPages = true;
2419 * Specify the name of a skin that should not be presented in the
2420 * list of available skins.
2421 * Use for blacklisting a skin which you do not want to remove
2422 * from the .../skins/ directory
2424 $wgSkipSkin = '';
2425 $wgSkipSkins = array(); # More of the same
2428 * Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
2430 $wgDisabledActions = array();
2433 * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
2435 $wgDisableHardRedirects = false;
2438 * Use http.dnsbl.sorbs.net to check for open proxies
2440 $wgEnableSorbs = false;
2441 $wgSorbsUrl = 'http.dnsbl.sorbs.net.';
2444 * Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other
2445 * methods might say
2447 $wgProxyWhitelist = array();
2450 * Simple rate limiter options to brake edit floods.
2451 * Maximum number actions allowed in the given number of seconds;
2452 * after that the violating client receives HTTP 500 error pages
2453 * until the period elapses.
2455 * array( 4, 60 ) for a maximum of 4 hits in 60 seconds.
2457 * This option set is experimental and likely to change.
2458 * Requires memcached.
2460 $wgRateLimits = array(
2461 'edit' => array(
2462 'anon' => null, // for any and all anonymous edits (aggregate)
2463 'user' => null, // for each logged-in user
2464 'newbie' => null, // for each recent account; overrides 'user'
2465 'ip' => null, // for each anon and recent account
2466 'subnet' => null, // ... with final octet removed
2468 'move' => array(
2469 'user' => null,
2470 'newbie' => null,
2471 'ip' => null,
2472 'subnet' => null,
2474 'mailpassword' => array(
2475 'anon' => NULL,
2477 'emailuser' => array(
2478 'user' => null,
2483 * Set to a filename to log rate limiter hits.
2485 $wgRateLimitLog = null;
2488 * Array of groups which should never trigger the rate limiter
2490 $wgRateLimitsExcludedGroups = array( 'sysop', 'bureaucrat' );
2493 * On Special:Unusedimages, consider images "used", if they are put
2494 * into a category. Default (false) is not to count those as used.
2496 $wgCountCategorizedImagesAsUsed = false;
2499 * External stores allow including content
2500 * from non database sources following URL links
2502 * Short names of ExternalStore classes may be specified in an array here:
2503 * $wgExternalStores = array("http","file","custom")...
2505 * CAUTION: Access to database might lead to code execution
2507 $wgExternalStores = false;
2510 * An array of external mysql servers, e.g.
2511 * $wgExternalServers = array( 'cluster1' => array( 'srv28', 'srv29', 'srv30' ) );
2513 $wgExternalServers = array();
2516 * The place to put new revisions, false to put them in the local text table.
2517 * Part of a URL, e.g. DB://cluster1
2519 * Can be an array instead of a single string, to enable data distribution. Keys
2520 * must be consecutive integers, starting at zero. Example:
2522 * $wgDefaultExternalStore = array( 'DB://cluster1', 'DB://cluster2' );
2525 $wgDefaultExternalStore = false;
2528 * Revision text may be cached in $wgMemc to reduce load on external storage
2529 * servers and object extraction overhead for frequently-loaded revisions.
2531 * Set to 0 to disable, or number of seconds before cache expiry.
2533 $wgRevisionCacheExpiry = 0;
2536 * list of trusted media-types and mime types.
2537 * Use the MEDIATYPE_xxx constants to represent media types.
2538 * This list is used by Image::isSafeFile
2540 * Types not listed here will have a warning about unsafe content
2541 * displayed on the images description page. It would also be possible
2542 * to use this for further restrictions, like disabling direct
2543 * [[media:...]] links for non-trusted formats.
2545 $wgTrustedMediaFormats= array(
2546 MEDIATYPE_BITMAP, //all bitmap formats
2547 MEDIATYPE_AUDIO, //all audio formats
2548 MEDIATYPE_VIDEO, //all plain video formats
2549 "image/svg+xml", //svg (only needed if inline rendering of svg is not supported)
2550 "application/pdf", //PDF files
2551 #"application/x-shockwave-flash", //flash/shockwave movie
2555 * Allow special page inclusions such as {{Special:Allpages}}
2557 $wgAllowSpecialInclusion = true;
2560 * Timeout for HTTP requests done via CURL
2562 $wgHTTPTimeout = 3;
2565 * Proxy to use for CURL requests.
2567 $wgHTTPProxy = false;
2570 * Enable interwiki transcluding. Only when iw_trans=1.
2572 $wgEnableScaryTranscluding = false;
2574 * Expiry time for interwiki transclusion
2576 $wgTranscludeCacheExpiry = 3600;
2579 * Support blog-style "trackbacks" for articles. See
2580 * http://www.sixapart.com/pronet/docs/trackback_spec for details.
2582 $wgUseTrackbacks = false;
2585 * Enable filtering of categories in Recentchanges
2587 $wgAllowCategorizedRecentChanges = false ;
2590 * Number of jobs to perform per request. May be less than one in which case
2591 * jobs are performed probabalistically. If this is zero, jobs will not be done
2592 * during ordinary apache requests. In this case, maintenance/runJobs.php should
2593 * be run periodically.
2595 $wgJobRunRate = 1;
2598 * Number of rows to update per job
2600 $wgUpdateRowsPerJob = 500;
2603 * Number of rows to update per query
2605 $wgUpdateRowsPerQuery = 10;
2608 * Enable AJAX framework
2610 $wgUseAjax = true;
2613 * Enable auto suggestion for the search bar
2614 * Requires $wgUseAjax to be true too.
2615 * Causes wfSajaxSearch to be added to $wgAjaxExportList
2617 $wgAjaxSearch = false;
2620 * List of Ajax-callable functions.
2621 * Extensions acting as Ajax callbacks must register here
2623 $wgAjaxExportList = array( );
2626 * Enable watching/unwatching pages using AJAX.
2627 * Requires $wgUseAjax to be true too.
2628 * Causes wfAjaxWatch to be added to $wgAjaxExportList
2630 $wgAjaxWatch = true;
2633 * Enable AJAX check for file overwrite, pre-upload
2635 $wgAjaxUploadDestCheck = true;
2638 * Enable previewing licences via AJAX
2640 $wgAjaxLicensePreview = true;
2643 * Allow DISPLAYTITLE to change title display
2645 $wgAllowDisplayTitle = true;
2648 * Array of usernames which may not be registered or logged in from
2649 * Maintenance scripts can still use these
2651 $wgReservedUsernames = array(
2652 'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
2653 'Conversion script', // Used for the old Wikipedia software upgrade
2654 'Maintenance script', // Maintenance scripts which perform editing, image import script
2655 'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
2659 * MediaWiki will reject HTMLesque tags in uploaded files due to idiotic browsers which can't
2660 * perform basic stuff like MIME detection and which are vulnerable to further idiots uploading
2661 * crap files as images. When this directive is on, <title> will be allowed in files with
2662 * an "image/svg+xml" MIME type. You should leave this disabled if your web server is misconfigured
2663 * and doesn't send appropriate MIME types for SVG images.
2665 $wgAllowTitlesInSVG = false;
2668 * Array of namespaces which can be deemed to contain valid "content", as far
2669 * as the site statistics are concerned. Useful if additional namespaces also
2670 * contain "content" which should be considered when generating a count of the
2671 * number of articles in the wiki.
2673 $wgContentNamespaces = array( NS_MAIN );
2676 * Maximum amount of virtual memory available to shell processes under linux, in KB.
2678 $wgMaxShellMemory = 102400;
2681 * Maximum file size created by shell processes under linux, in KB
2682 * ImageMagick convert for example can be fairly hungry for scratch space
2684 $wgMaxShellFileSize = 102400;
2687 * DJVU settings
2688 * Path of the djvudump executable
2689 * Enable this and $wgDjvuRenderer to enable djvu rendering
2691 # $wgDjvuDump = 'djvudump';
2692 $wgDjvuDump = null;
2695 * Path of the ddjvu DJVU renderer
2696 * Enable this and $wgDjvuDump to enable djvu rendering
2698 # $wgDjvuRenderer = 'ddjvu';
2699 $wgDjvuRenderer = null;
2702 * Path of the djvutoxml executable
2703 * This works like djvudump except much, much slower as of version 3.5.
2705 * For now I recommend you use djvudump instead. The djvuxml output is
2706 * probably more stable, so we'll switch back to it as soon as they fix
2707 * the efficiency problem.
2708 * http://sourceforge.net/tracker/index.php?func=detail&aid=1704049&group_id=32953&atid=406583
2710 # $wgDjvuToXML = 'djvutoxml';
2711 $wgDjvuToXML = null;
2715 * Shell command for the DJVU post processor
2716 * Default: pnmtopng, since ddjvu generates ppm output
2717 * Set this to false to output the ppm file directly.
2719 $wgDjvuPostProcessor = 'pnmtojpeg';
2721 * File extension for the DJVU post processor output
2723 $wgDjvuOutputExtension = 'jpg';
2726 * Enable the MediaWiki API for convenient access to
2727 * machine-readable data via api.php
2729 * See http://www.mediawiki.org/wiki/API
2731 $wgEnableAPI = true;
2734 * Allow the API to be used to perform write operations
2735 * (page edits, rollback, etc.) when an authorised user
2736 * accesses it
2738 $wgEnableWriteAPI = false;
2741 * API module extensions
2742 * Associative array mapping module name to class name.
2743 * Extension modules may override the core modules.
2745 $wgAPIModules = array();
2748 * Parser test suite files to be run by parserTests.php when no specific
2749 * filename is passed to it.
2751 * Extensions may add their own tests to this array, or site-local tests
2752 * may be added via LocalSettings.php
2754 * Use full paths.
2756 $wgParserTestFiles = array(
2757 "$IP/maintenance/parserTests.txt",
2761 * Break out of framesets. This can be used to prevent external sites from
2762 * framing your site with ads.
2764 $wgBreakFrames = false;
2767 * Set this to an array of special page names to prevent
2768 * maintenance/updateSpecialPages.php from updating those pages.
2770 $wgDisableQueryPageUpdate = false;
2773 * Set this to false to disable cascading protection
2775 $wgEnableCascadingProtection = true;
2778 * Disable output compression (enabled by default if zlib is available)
2780 $wgDisableOutputCompression = false;
2783 * If lag is higher than $wgSlaveLagWarning, show a warning in some special
2784 * pages (like watchlist). If the lag is higher than $wgSlaveLagCritical,
2785 * show a more obvious warning.
2787 $wgSlaveLagWarning = 10;
2788 $wgSlaveLagCritical = 30;
2791 * Parser configuration. Associative array with the following members:
2793 * class The class name
2795 * The entire associative array will be passed through to the constructor as
2796 * the first parameter. Note that only Setup.php can use this variable --
2797 * the configuration will change at runtime via $wgParser member functions, so
2798 * the contents of this variable will be out-of-date. The variable can only be
2799 * changed during LocalSettings.php, in particular, it can't be changed during
2800 * an extension setup function.
2802 $wgParserConf = array(
2803 'class' => 'Parser',