r53283 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53282‎ | r53283 | r53284 >
Date:00:31, 15 July 2009
Author:dale
Status:ok
Tags:
Comment:
fixed some bad merging on DefaultSettings.php
Modified paths:
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/DefaultSettings.php
@@ -165,10 +165,10 @@
166166 /**@}*/
167167
168168 /**
169 - * Directory for caching data in the local filesystem. Should not be accessible
 169+ * Directory for caching data in the local filesystem. Should not be accessible
170170 * from the web. Set this to false to not use any local caches.
171171 *
172 - * Note: if multiple wikis share the same localisation cache directory, they
 172+ * Note: if multiple wikis share the same localisation cache directory, they
173173 * must all have the same set of extensions. You can set a directory just for
174174 * the localisation cache using $wgLocalisationCacheConf['storeDirectory'].
175175 */
@@ -504,7 +504,7 @@
505505 *
506506 * Please specify the namespace, as in the example below.
507507 */
508 -$wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/File:";
 508+$wgRepositoryBaseUrl = "http://commons.wikimedia.org/wiki/Image:";
509509
510510 #
511511 # Email settings
@@ -786,15 +786,18 @@
787787 /**@}*/
788788
789789 /**
790 - * Directory for local copy of message cache, for use in addition to memcached
 790+ * Set this to true to make a local copy of the message cache, for use in
 791+ * addition to memcached. The files will be put in $wgCacheDirectory.
791792 */
792 -$wgLocalMessageCache = false;
 793+$wgUseLocalMessageCache = false;
 794+
793795 /**
794796 * Defines format of local cache
795797 * true - Serialized object
796798 * false - PHP source file (Warning - security risk)
797799 */
798800 $wgLocalMessageCacheSerialized = true;
 801+
799802 /**
800803 * Localisation cache configuration. Associative array with keys:
801804 * class: The class to use. May be overridden by extensions.
@@ -891,6 +894,15 @@
892895 $wgDTD = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
893896 $wgXhtmlDefaultNamespace = 'http://www.w3.org/1999/xhtml';
894897
 898+ /**
 899+ * Should we output an HTML 5 doctype? This mode is still experimental, but
 900+ * all indications are that it should be usable, so it's enabled by default.
 901+ * If all goes well, it will be removed and become always true before the 1.16
 902+ * release.
 903+ */
 904+ $wgHtml5 = true;
 905+
 906+
895907 /**
896908 * Permit other namespaces in addition to the w3.org default.
897909 * Use the prefix for the key and the namespace for the value. For
@@ -1456,6 +1468,7 @@
14571469 * array( APCOND_ISIP, ip ), *OR*
14581470 * array( APCOND_IPINRANGE, range ), *OR*
14591471 * array( APCOND_AGE_FROM_EDIT, seconds since first edit ), *OR*
 1472+ * array( APCOND_BLOCKED ), *OR*
14601473 * similar constructs defined by extensions.
14611474 *
14621475 * If $wgEmailAuthentication is off, APCOND_EMAILCONFIRMED will be true for any
@@ -1566,7 +1579,7 @@
15671580 $wgUseFileCache = false;
15681581
15691582 /** Directory where the cached page will be saved */
1570 -$wgFileCacheDirectory = false; ///< defaults to "{$wgUploadDirectory}/cache";
 1583+$wgFileCacheDirectory = false; ///< defaults to "$wgCacheDirectory/html";
15711584
15721585 /**
15731586 * When using the file cache, we can store the cached HTML gzipped to save disk
@@ -2080,9 +2093,9 @@
20812094 /**
20822095 * Site notice shown at the top of each page
20832096 *
2084 - * This message can contain wiki text, and can also be set through the
2085 - * MediaWiki:Sitenotice page. You can also provide a separate message for
2086 - * logged-out users using the MediaWiki:Anonnotice page.
 2097+ * MediaWiki:Sitenotice page, which will override this. You can also
 2098+ * provide a separate message for logged-out users using the
 2099+ * MediaWiki:Anonnotice page.
20872100 */
20882101 $wgSiteNotice = '';
20892102
@@ -2177,6 +2190,17 @@
21782191 */
21792192 $wgMaxAnimatedGifArea = 1.0e6;
21802193 /**
 2194+ * Browsers don't support TIFF inline generally...
 2195+ * For inline display, we need to convert to PNG or JPEG.
 2196+ * Note scaling should work with ImageMagick, but may not with GD scaling.
 2197+ * // PNG is lossless, but inefficient for photos
 2198+ * $wgTiffThumbnailType = array( 'png', 'image/png' );
 2199+ * // JPEG is good for photos, but has no transparency support. Bad for diagrams.
 2200+ * $wgTiffThumbnailType = array( 'jpg', 'image/jpeg' );
 2201+ */
 2202+ $wgTiffThumbnailType = false;
 2203+
 2204+/**
21812205 * If rendered thumbnail files are older than this timestamp, they
21822206 * will be rerendered on demand as if the file didn't already exist.
21832207 * Update if there is some need to force thumbs and SVG rasterizations
@@ -2206,6 +2230,11 @@
22072231 */
22082232 $wgGenerateThumbnailOnParse = true;
22092233
 2234+/**
 2235+* Show thumbnails for old images on the image description page
 2236+*/
 2237+$wgShowArchiveThumbnails = true;
 2238+
22102239 /** Obsolete, always true, kept for compatibility with extensions */
22112240 $wgUseImageResize = true;
22122241
@@ -2228,7 +2257,7 @@
22292258 /**
22302259 * Recentchanges items are periodically purged; entries older than this many
22312260 * seconds will go.
2232 - * Default: 13 weeks = about three monts
 2261+ * Default: 13 weeks = about three months
22332262 */
22342263 $wgRCMaxAge = 13 * 7 * 24 * 3600;
22352264
@@ -2375,6 +2404,9 @@
23762405 */
23772406 $wgExportMaxHistory = 0;
23782407
 2408+/**
 2409+* Return distinct author list (when not returning full history)
 2410+*/
23792411 $wgExportAllowListContributors = false ;
23802412
23812413 /**
@@ -2383,21 +2415,33 @@
23842416 * pages linked to from the pages you specify. Since this number
23852417 * can become *insanely large* and could easily break your wiki,
23862418 * it's disabled by default for now.
 2419+ *
 2420+ * There's a HARD CODED limit of 5 levels of recursion to prevent a
 2421+ * crazy-big export from being done by someone setting the depth
 2422+ * number too high. In other words, last resort safety net.
23872423 */
23882424 $wgExportMaxLinkDepth = 0;
23892425
 2426+/**
 2427+* Whether to allow the "export all pages in namespace" option
 2428+*/
 2429+$wgExportFromNamespaces = false;
23902430
23912431 /**
2392 - * Edits matching these regular expressions in body text or edit summary
 2432+ * Edits matching these regular expressions in body text
23932433 * will be recognised as spam and rejected automatically.
23942434 *
23952435 * There's no administrator override on-wiki, so be careful what you set. :)
23962436 * May be an array of regexes or a single string for backwards compatibility.
23972437 *
23982438 * See http://en.wikipedia.org/wiki/Regular_expression
 2439+ * Note that each regex needs a beginning/end delimiter, eg: # or /
23992440 */
24002441 $wgSpamRegex = array();
24012442
 2443+/** Same as the above except for edit summaries */
 2444+$wgSummarySpamRegex = array();
 2445+
24022446 /** Similarly you can get a function to do the job. The function will be given
24032447 * the following args:
24042448 * - a Title object for the article the edit is made on
@@ -2589,11 +2633,16 @@
25902634 $wgSkinExtensionFunctions = array();
25912635
25922636 /**
2593 - * Extension messages files
2594 - * Associative array mapping extension name to the filename where messages can be found.
2595 - * The file must create a variable called $messages.
2596 - * When the messages are needed, the extension should call wfLoadExtensionMessages().
 2637+ * Extension messages files.
25972638 *
 2639+ * Associative array mapping extension name to the filename where messages can be
 2640+ * found. The file should contain variable assignments. Any of the variables
 2641+ * present in languages/messages/MessagesEn.php may be defined, but $messages
 2642+ * is the most common.
 2643+ *
 2644+ * Variables defined in extensions will override conflicting variables defined
 2645+ * in the core.
 2646+ *
25982647 * Example:
25992648 * $wgExtensionMessagesFiles['ConfirmEdit'] = dirname(__FILE__).'/ConfirmEdit.i18n.php';
26002649 *
@@ -2602,13 +2651,7 @@
26032652
26042653 /**
26052654 * Aliases for special pages provided by extensions.
2606 - * Associative array mapping special page to array of aliases. First alternative
2607 - * for each special page will be used as the normalised name for it. English
2608 - * aliases will be added to the end of the list so that they always work. The
2609 - * file must define a variable $aliases.
2610 - *
2611 - * Example:
2612 - * $wgExtensionAliasesFiles['Translate'] = dirname(__FILE__).'/Translate.alias.php';
 2655+ * @deprecated Use $specialPageAliases in a file referred to by $wgExtensionMessagesFiles
26132656 */
26142657 $wgExtensionAliasesFiles = array();
26152658
@@ -2704,6 +2747,7 @@
27052748 * $wgExtensionCredits[$type][] = array(
27062749 * 'name' => 'Example extension',
27072750 * 'version' => 1.9,
 2751+ * 'path' => __FILE__,
27082752 * 'svn-revision' => '$LastChangedRevision$',
27092753 * 'author' => 'Foo Barstein',
27102754 * 'url' => 'http://wwww.example.com/Example%20Extension/',
@@ -3061,7 +3105,7 @@
30623106 'import' => 'importlogpage',
30633107 'patrol' => 'patrol-log-page',
30643108 'merge' => 'mergelog',
3065 - 'suppress' => 'suppressionlog'
 3109+ 'suppress' => 'suppressionlog',
30663110 );
30673111
30683112 /**
@@ -3178,6 +3222,7 @@
31793223 'Filepath' => 'media',
31803224
31813225 'Listusers' => 'users',
 3226+ 'Activeusers' => 'users',
31823227 'Listgrouprights' => 'users',
31833228 'Ipblocklist' => 'users',
31843229 'Contributions' => 'users',
@@ -3813,6 +3858,12 @@
38143859 $wgLinkHolderBatchSize = 1000;
38153860
38163861 /**
 3862+ * By default MediaWiki does not register links pointing to same server in externallinks dataset,
 3863+ * use this value to override:
 3864+ */
 3865+$wgRegisterInternalExternals = false;
 3866+
 3867+/**
38173868 * Hooks that are used for outputting exceptions. Format is:
38183869 * $wgExceptionHooks[] = $funcname
38193870 * or:
@@ -3919,6 +3970,13 @@
39203971 $wgUseTwoButtonsSearchForm = true;
39213972
39223973 /**
 3974+ * Search form behavior for Vector skin only
 3975+ * true = use an icon search button
 3976+ * false = use Go & Search buttons
 3977+ */
 3978+$wgVectorUseSimpleSearch = false;
 3979+
 3980+/**
39233981 * Preprocessor caching threshold
39243982 */
39253983 $wgPreprocessorCacheThreshold = 1000;
@@ -3952,3 +4010,19 @@
39534011 * modify the user rights of those users via Special:UserRights
39544012 */
39554013 $wgUserrightsInterwikiDelimiter = '@';
 4014+
 4015+/**
 4016+ * Configuration for processing pool control, for use in high-traffic wikis.
 4017+ * An implementation is provided in the PoolCounter extension.
 4018+ *
 4019+ * This configuration array maps pool types to an associative array. The only
 4020+ * defined key in the associative array is "class", which gives the class name.
 4021+ * The remaining elements are passed through to the class as constructor
 4022+ * parameters. Example:
 4023+ *
 4024+ * $wgPoolCounterConf = array( 'Article::view' => array(
 4025+ * 'class' => 'PoolCounter_Client',
 4026+ * ... any extension-specific options...
 4027+ * );
 4028+ */
 4029+$wgPoolCounterConf = null;

Status & tagging log