r92272 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92271‎ | r92272 | r92273 >
Date:18:34, 15 July 2011
Author:aaron
Status:resolved (Comments)
Tags:
Comment:
Merged in live CommonSettings.php changes...sigh
Modified paths:
  • /trunk/tools/mwmultiversion/wmf-config/CommonSettings.php (modified) (history)

Diff [purge]

Index: trunk/tools/mwmultiversion/wmf-config/CommonSettings.php
@@ -11,20 +11,15 @@
1212 # at least sometimes, but what we're running will send a 200.
1313 header( "Cache-control: no-cache" );
1414
15 -
1615 # Try to control stuff:
1716 #define( 'DEBUG_LOG', true );
1817
19 -
2018 # useful tokens to search for:
2119
2220 # :SEARCH: - search settings
2321 # :SLAVES: - database slaves
2422 # :PROFILING:
2523
26 -# header("HTTP/1.0 500 Internal server error" );
27 -# die("Wikipedia and its sister projects are experiencing technical problems. Please try again later. We apologise for the inconvenience, and thank you for your patience while developers are working to resolve the issue as soon as possible."); # temp to reduce load --brion
28 -
2924 # -----------------
3025
3126 if( php_sapi_name() == 'cli' ) {
@@ -46,6 +41,7 @@
4742
4843 #----------------------------------------------------------------------
4944 # Initialisation
 45+
5046 /*
5147 if ( defined( 'TESTWIKI' ) ) {
5248 $IP = "/home/wikipedia/common/php-1.17";
@@ -53,8 +49,7 @@
5450 $IP = "/usr/local/apache/common/php-1.17";
5551 }
5652 */
57 -//ini_set( "include_path", "$IP:$IP/includes:$IP/languages:$IP/templates:$IP/lib:$IP/extensions/wikihiero:/usr/local/lib/php:/usr/share/php" );
58 -// Modernized BV -- 2009-7-14
 53+
5954 set_include_path( "$IP:$IP/lib:/usr/local/lib/php:/usr/share/php" );
6055
6156 if( getenv( 'WIKIBACKUP' ) ) {
@@ -64,15 +59,6 @@
6560 }
6661 }
6762
68 -/*
69 -$cluster = @file_get_contents( '/etc/cluster' );
70 -if ( !$cluster ) {
71 - # Let's be nice until we're sure things are set up properly
72 - # die( "Invalid or missing /etc/cluster file on host {$_ENV['HOSTNAME']}\n" );
73 - $cluster = 'pmtpa';
74 -}
75 -$cluster = trim( $cluster );
76 - */
7763 $cluster = 'pmtpa';
7864
7965 # Load site configuration
@@ -85,10 +71,6 @@
8672 if ( $hatesSafari ) {
8773 $wgDisableOutputCompression = true;
8874 }
89 -/*
90 -if ( !$wgCommandLineMode && !defined( 'MW_NO_OUTPUT_BUFFER' ) && !$hatesSafari ) {
91 - ob_start("ob_gzhandler");
92 -}*/
9375
9476 ini_set( 'memory_limit', 120 * 1024 * 1024 );
9577
@@ -111,38 +93,31 @@
11294 $wgDBname = $multiVersion->getDatabase();
11395 $wgVersionDirectory = $multiVersion->getVersion();
11496
115 -# Disabled, no IPv6 support, waste of a regex -- TS 20051207
116 -/*
117 -$ipv6 = false;
118 -if (preg_match('/^[a-z]\.ipv6\./', $server)) {
119 - $ipv6 = true;
120 -}*/
121 -
122 -# Shutting eswiki down
123 -#if ( $wgDBname == 'eswiki' && php_sapi_name() != 'cli' ) { die(); }
124 -
12597 wfProfileOut( "$fname-host" );
12698
 99+# wmf-config directory
 100+$wmfConfigDir = "$IP/../wmf-config";
 101+
127102 # Initialise wgConf
128103 wfProfileIn( "$fname-wgConf" );
129 -require( "$IP/../wmf-config/wgConf.php" );
 104+require( "$wmfConfigDir/wgConf.php" );
130105
131106 function wmfLoadInitialiseSettings( $conf ) {
132107 global $IP;
133108 $wgConf =& $conf; # b/c alias
134 - require( "$IP/../wmf-config/InitialiseSettings.php" );
 109+ require( "$wmfConfigDir/InitialiseSettings.php" );
135110 }
136111
137112 wfProfileOut( "$fname-wgConf" );
138113 wfProfileIn( "$fname-confcache" );
139114
140115 # Is this database listed in $cluster.dblist?
141 -if ( array_search( $wgDBname, $wgLocalDatabases ) === false ){
 116+if ( array_search( $wgDBname, $wgLocalDatabases ) === false ){
142117 # No? Load missing.php
143118 if ( $wgCommandLineMode) {
144119 print "Database name $wgDBname is not listed in $cluster.dblist\n";
145120 } else {
146 - require( "$IP/../wmf-config/missing.php" );
 121+ require( "$wmfConfigDir/missing.php" );
147122 }
148123 exit;
149124 }
@@ -151,7 +126,7 @@
152127
153128 $filename = "/tmp/mw-cache-$wgVersionDirectory/conf-$wgDBname";
154129 $globals = false;
155 -if ( @filemtime( $filename ) >= filemtime( "$IP/../wmf-config/InitialiseSettings.php" ) ) {
 130+if ( @filemtime( $filename ) >= filemtime( "$wmfConfigDir/InitialiseSettings.php" ) ) {
156131 $cacheRecord = @file_get_contents( $filename );
157132 if ( $cacheRecord !== false ) {
158133 $globals = unserialize( $cacheRecord );
@@ -161,7 +136,7 @@
162137 if ( !$globals ) {
163138 wfProfileIn( "$fname-recache-settings" );
164139 # Get configuration from SiteConfiguration object
165 - require( "$IP/../wmf-config/InitialiseSettings.php" );
 140+ require( "$wmfConfigDir/InitialiseSettings.php" );
166141
167142 $wikiTags = array();
168143 foreach ( array( 'private', 'fishbowl', 'special', 'closed', 'flaggedrevs', 'readonly', 'switchover-jun30' ) as $tag ) {
@@ -176,7 +151,8 @@
177152 'lang' => $lang,
178153 'docRoot' => $_SERVER['DOCUMENT_ROOT'],
179154 'site' => $site,
180 - 'stdlogo' => "http://upload.wikimedia.org/$site/$lang/b/bc/Wiki.png"
 155+ 'stdlogo' => "http://upload.wikimedia.org/$site/$lang/b/bc/Wiki.png" ,
 156+ 'prstdlogo' => "//upload.wikimedia.org/$site/$lang/b/bc/Wiki.png",
181157 ), $wikiTags );
182158
183159 # Save cache
@@ -195,18 +171,23 @@
196172
197173 extract( $globals );
198174
199 -
200175 #-------------------------------------------------------------------------
201176 # Settings common to all wikis
202177
203178 # Private settings such as passwords, that shouldn't be published
204179 # Needs to be before db.php
205 -require( "$IP/../wmf-config/PrivateSettings.php" );
 180+require( "$wmfConfigDir/PrivateSettings.php" );
206181
207182 # Cluster-dependent files for database and memcached
208 -require( "$IP/../wmf-config/db.php" );
209 -require("$IP/../wmf-config/mc.php");
 183+require( "$wmfConfigDir/db.php" );
 184+require( "$wmfConfigDir/mc.php" );
210185
 186+# Protocol settings for urls
 187+if ( !$secure && $wmgHTTPSExperiment ) {
 188+ $urlprotocol = "";
 189+} else {
 190+ $urlprotocol = "http:";
 191+}
211192
212193 setlocale( LC_ALL, 'en_US.UTF-8' );
213194
@@ -215,12 +196,12 @@
216197 #$wgStyleSheetPath = '/w/skins-1.17';
217198 if ( $wgDBname == 'testwiki' ) {
218199 // Make testing skin/JS changes easier
219 - $wgExtensionAssetsPath = 'http://test.wikipedia.org/w/extensions-' . $wgVersionDirectory;
220 - $wgStyleSheetPath = 'http://test.wikipedia.org/w/skins-' . $wgVersionDirectory;
 200+ $wgExtensionAssetsPath = "$urlprotocol//test.wikipedia.org/w/extensions-1.17";
 201+ $wgStyleSheetPath = "$urlprotocol//test.wikipedia.org/w/skins-1.17";
221202
222203 } else {
223 - $wgExtensionAssetsPath = 'http://bits.wikimedia.org/w/extensions-' . $wgVersionDirectory;
224 - $wgStyleSheetPath = 'http://bits.wikimedia.org/skins-' . $wgVersionDirectory;
 204+ $wgExtensionAssetsPath = "$urlprotocol//bits.wikimedia.org/w/extensions-1.17";
 205+ $wgStyleSheetPath = "$urlprotocol//bits.wikimedia.org/skins-1.17";
225206 }
226207 $wgStylePath = $wgStyleSheetPath;
227208 $wgArticlePath = "/wiki/$1";
@@ -232,9 +213,17 @@
233214 $wgRedirectScript = $wgScriptPath.'/redirect.php';
234215 if ( $wgDBname != 'testwiki' ) {
235216 // Make testing JS/skin changes easy by not running load.php through bits for testwiki
236 - $wgLoadScript = "http://bits.wikimedia.org/{$_SERVER['SERVER_NAME']}/load.php";
 217+ $wgLoadScript = "$urlprotocol//bits.wikimedia.org/{$_SERVER['SERVER_NAME']}/load.php";
237218 }
238219
 220+$oldLabsWikis = array( 'en_labswikimedia', 'de_labswikimedia', 'flaggedrevs_labswikimedia' );
 221+if ( !in_array( $wgDBname, $oldLabsWikis ) ) {
 222+ $wgCacheDirectory = '/tmp/mw-cache-1.17';
 223+} else {
 224+ # @TODO: remove this hack (use multiversioning proper)
 225+ $wgCacheDirectory = '/tmp/mw-cache-labs';
 226+}
 227+
239228 # Very wrong place for NFS access - brought the site down -- domas - 2009-01-27
240229
241230 #if ( ! is_dir( $wgUploadDirectory ) && !$wgCommandLineMode ) {
@@ -243,12 +232,12 @@
244233
245234 $wgFileStore['deleted']['directory'] = "/mnt/upload6/private/archive/$site/$lang";
246235
247 -if ( $cluster == 'yaseo' ) {
248 - $wgSharedThumbnailScriptPath = 'http://commons.wikimedia.org/w/thumb.php';
 236+/*if ( $cluster == 'yaseo' ) {
 237+ $wgSharedThumbnailScriptPath = "$urlprotocol//commons.wikimedia.org/w/thumb.php";
249238 $wgUploadPath = '/upload';
250239 $wgUploadDirectory = "/mnt/upload/$site/$lang";
251240 $wgFileStore['deleted']['directory'] = "/mnt/upload/private/archive/$site/$lang";
252 -}
 241+}*/
253242
254243 # used for mysql/search settings
255244 $tmarray = getdate(time());
@@ -281,7 +270,6 @@
282271 putenv("TZ=$oldtz");
283272 }
284273
285 -
286274 $wgShowIPinHeader = false;
287275 $wgUseGzip = true;
288276 $wgRCMaxAge = 30*86400;
@@ -366,10 +354,6 @@
367355 $wgFileBlacklist[] = 'mht';
368356 # $wgFileBlacklist[] = 'pdf';
369357 $wgFileExtensions[] = 'xcf';
370 -# Disabling this for now -- brion - 2007-08-21
371 -#if( $wgDBname != 'commonswiki' ) {
372 -# $wgFileExtensions[] = 'xls';
373 -#}
374358 $wgFileExtensions[] = 'pdf';
375359 $wgFileExtensions[] = 'mid';
376360 #$wgFileExtensions[] = 'sxw'; # OOo writer # -- disabling these as obsolete -- brion 2008-02-05
@@ -392,9 +376,7 @@
393377 if( $wgDBname == 'foundationwiki' ) { # per cary on 2010-05-11
394378 $wgFileExtensions[] = 'otf';
395379 $wgFileExtensions[] = 'ai';
396 -}
397 -
398 -if ( $wgDBname == 'outreachwiki' ) { # Per Frank, bug 25106
 380+} else if ( $wgDBname == 'outreachwiki' ) { # Per Frank, bug 25106
399381 $wgFileExtensions[] = 'sla';
400382 }
401383
@@ -654,28 +636,16 @@
655637 $wgLogQueries = true;
656638 $wgSqlLogFile = $wgUploadDirectory.'/sqllog';
657639
658 -
659640 $wgBlockOpenProxies = false;
660641
661642 $wgDebugLogGroups['UploadBlacklist'] = 'udp://10.0.5.8:8420/upload-blacklist';
662643
663644 $wgDebugLogGroups['404'] = 'udp://10.0.5.8:8420/four-oh-four';
664645
665 -
666646 # Don't allow users to redirect other users' talk pages
667647 # Disabled because interwiki redirects are turned off, so it's not needed
668648 #include( "$IP/Filter-ext_redir.php" );
669649
670 -#include("outage.php");
671 -#declareOutage( "2004-05-12", "02:00", "03:00" );
672 -/*
673 -$d = getdate();
674 -$hour = $d['hours'];
675 -if ( $lang == "en" && $hour >= 13 && $hour < 18 ) {
676 - $wgUseWatchlistCache = true;
677 - $wgWLCacheTimeout = 3600;
678 -}
679 -*/
680650 ## For attaching licensing metadata to pages, and displaying an
681651 ## appropriate copyright notice / icon. GNU Free Documentation
682652 ## License and Creative Commons licenses are supported so far.
@@ -683,18 +653,18 @@
684654
685655 if( $site == 'wikinews' ) {
686656 #$wgRightsPage = "";# Set to the title of a wiki page that describes your license/copyright
687 - $wgRightsUrl = 'http://creativecommons.org/licenses/by/2.5/';
 657+ $wgRightsUrl = "$urlprotocol//creativecommons.org/licenses/by/2.5/";
688658 $wgRightsText = 'Creative Commons Attribution 2.5';
689 - $wgRightsIcon = 'http://creativecommons.org/images/public/somerights20.png';
 659+ $wgRightsIcon = "$urlprotocol//creativecommons.org/images/public/somerights20.png";
690660 } elseif ( $wgDBname == 'huwikinews') {
691 - $wgRightsUrl = 'http://creativecommons.org/licenses/by/3.0/';
 661+ $wgRightsUrl = "$urlprotocol//creativecommons.org/licenses/by/3.0/";
692662 $wgRightsText = 'Creative Commons Attribution 3.0 Unported';
693 - $wgRightsIcon = 'http://creativecommons.org/images/public/somerights20.png';
 663+ $wgRightsIcon = "$urlprotocol//creativecommons.org/images/public/somerights20.png";
694664 } else {
695665 # Set 2009-06-22 -- BV
696 - $wgRightsUrl = 'http://creativecommons.org/licenses/by-sa/3.0/';
 666+ $wgRightsUrl = "$urlprotocol//creativecommons.org/licenses/by-sa/3.0/";
697667 $wgRightsText = 'Creative Commons Attribution-Share Alike 3.0 Unported';
698 - $wgRightsIcon = 'http://creativecommons.org/images/public/somerights20.png';
 668+ $wgRightsIcon = "$urlprotocol//creativecommons.org/images/public/somerights20.png";
699669 }
700670
701671 # FIXME: Turned off tidy for testing. --brion 2004-01-19
@@ -707,7 +677,7 @@
708678 $wgUseTidy = true;
709679
710680 # Profiling, typically at 100 rate
711 -#Caution: moderate profiling rates can write 1.5GB per day each to the slow query and binary logs.
 681+# Caution: moderate profiling rates can write 1.5GB per day each to the slow query and binary logs.
712682 # If the master is low on disk space, you'll need to empty the slow query log
713683 # PLEASE TELL JAMES OR WHOEVER IS LOOKING AFTER THE DATABASE SERVERS IF YOU TURN ON PROFILING
714684 # :PROFILING:
@@ -748,16 +718,12 @@
749719 $wgProfileSampleRate = 1;
750720 }
751721
752 -
753722 wfProfileOut( "$fname-misc1" );
754723 wfProfileIn( "$fname-ext-include1" );
755724
756725 include($IP.'/extensions/timeline/Timeline.php');
757726 include($IP.'/extensions/wikihiero/wikihiero.php');
758727
759 -// if ( $wgDBname == 'testwiki' ) {
760 - // $wgTimelineSettings->fontFile = 'unifont-5.1.20080907.ttf';
761 -// }
762728 if ( $wgDBname == 'testwiki' || $wgDBname == 'mlwiki' ) {
763729 // FreeSansWMF has been generated from FreeSans and FreeSerif by using this script with fontforge:
764730 // Open("FreeSans.ttf");
@@ -767,7 +733,6 @@
768734 $wgTimelineSettings->fontFile = 'FreeSansWMF.ttf';
769735 }
770736
771 -
772737 include( $IP.'/extensions/SiteMatrix/SiteMatrix.php' );
773738 // Config for sitematrix
774739 $wgSiteMatrixFile = '/apache/common/langlist';
@@ -777,6 +742,8 @@
778743
779744 include( $IP.'/extensions/CharInsert/CharInsert.php' );
780745 include( $IP.'/extensions/CheckUser/CheckUser.php' );
 746+$wgCheckUserForceSummary = $wmgCheckUserForceSummary;
 747+
781748 include( $IP.'/extensions/ParserFunctions/ParserFunctions.php' );
782749 $wgMaxIfExistCount = 500; // obs
783750 $wgExpensiveParserFunctionLimit = 500;
@@ -798,7 +765,7 @@
799766
800767 // Experimental side-by-side comparison extension for wikisource. enabled brion 2006-01-13
801768 if( $wmgUseDoubleWiki ) {
802 - include( $IP.'/extensions/DoubleWiki/DoubleWiki.php' );
 769+ include( $IP.'/extensions/DoubleWiki/DoubleWiki.php' );
803770 }
804771
805772 # Poem
@@ -810,7 +777,7 @@
811778
812779 // Per-wiki config for Flagged Revisions
813780 if ( $wmgUseFlaggedRevs ) {
814 - include( $IP.'/../wmf-config/flaggedrevs.php');
 781+ include( "$wmfConfigDir/flaggedrevs.php" );
815782 }
816783
817784 $wgUseAjax = true;
@@ -819,9 +786,8 @@
820787
821788
822789 if ( $wmgUseProofreadPage ) {
823 -//if ( $wgDBname == 'frwikisource' || $wgDBname == 'enwikisource' || $wgDBname == 'ptwikisource' ) {
824790 include( $IP . '/extensions/ProofreadPage/ProofreadPage.php' );
825 - include( $IP . '/../wmf-config/proofreadpage.php');
 791+ include( "$wmfConfigDir/proofreadpage.php" );
826792 }
827793 if( $wmgUseLST ) {
828794 include( $IP . '/extensions/LabeledSectionTransclusion/lst.php' );
@@ -838,11 +804,10 @@
839805 $wgTitleBlacklistSources = array(
840806 array(
841807 'type' => TBLSRC_URL,
842 - 'src' => 'http://meta.wikimedia.org/w/index.php?title=Title_blacklist&action=raw&tb_ver=1',
 808+ 'src' => "$urlprotocol//meta.wikimedia.org/w/index.php?title=Title_blacklist&action=raw&tb_ver=1",
843809 ),
844810 );
845811
846 -#if ( $site == 'wikiversity' || $wgDBname == 'ptwikibooks' || $wgDBname == 'itwikibooks' || $wgDBname == 'enwikinews' ) {
847812 if( $wmgUseQuiz ) {
848813 include( "$IP/extensions/Quiz/Quiz.php" );
849814 }
@@ -851,17 +816,17 @@
852817 include( "$IP/extensions/Gadgets/Gadgets.php" );
853818 }
854819
855 -// if( $wgAutomaticGroups ) {
856 -// include( "$IP/extensions/AutomaticGroups/AutomaticGroups.php" );
857 -//}
858 -
859820 include( $IP.'/extensions/OggHandler/OggHandler.php' );
860821 $wgOggThumbLocation = '/usr/local/bin/oggThumb';
861822 // you can keep the filename the same and use maintenance/purgeList.php
862 -$wgCortadoJarFile = 'http://upload.wikimedia.org/jars/cortado.jar';
 823+$wgCortadoJarFile = "$urlprotocol//upload.wikimedia.org/jars/cortado.jar";
863824
864825 include( $IP.'/extensions/AssertEdit/AssertEdit.php' );
865826
 827+if ( $wgDBname == 'collabwiki' ) {
 828+ $wgUseTidy = false;
 829+}
 830+
866831 if ( $wgDBname == 'foundationwiki' ) {
867832 include( "$IP/extensions/FormPreloadPostCache/FormPreloadPostCache.php" );
868833 include( "$IP/extensions/SkinPerPage/SkinPerPage.php" );
@@ -870,7 +835,7 @@
871836 include( "$IP/extensions/skins/Donate/Donate.php" );
872837
873838 include( "$IP/extensions/ContributionReporting/ContributionReporting.php" );
874 - include( "$IP/../wmf-config/reporting-setup.php");
 839+ include( "$wmfConfigDir/reporting-setup.php" );
875840
876841 include( "$IP/extensions/ContactPageFundraiser/ContactPage.php" );
877842 $wgContactUser = 'Storiescontact';
@@ -942,14 +907,12 @@
943908 $wgAllowedPaymentMethod = array(
944909 'cc','pp'
945910 );
946 -
947 -
948911 }
949912
950913 if ( $wgDBname == 'mediawikiwiki' ) {
951914 include( "$IP/extensions/ExtensionDistributor/ExtensionDistributor.php" );
952915 $wgExtDistTarDir = '/mnt/upload6/ext-dist';
953 - $wgExtDistTarUrl = 'http://upload.wikimedia.org/ext-dist';
 916+ $wgExtDistTarUrl = "$urlprotocol//upload.wikimedia.org/ext-dist";
954917 $wgExtDistWorkingCopy = '/mnt/upload6/private/ExtensionDistributor/mw-snapshot';
955918 $wgExtDistRemoteClient = '208.80.152.165:8430';
956919
@@ -1027,6 +990,7 @@
1028991 // NOTE: Must be BEFORE ArticleFeedback
1029992 if ( $wgUseEmailCapture ) {
1030993 include( "$IP/extensions/EmailCapture/EmailCapture.php" );
 994+ $wgEmailCaptureAutoResponse['from'] = 'improve@wikimedia.org';
1031995 }
1032996
1033997 // Mobile redirect
@@ -1038,24 +1002,12 @@
10391003
10401004 // PoolCounter
10411005 if ( $wmgUsePoolCounter ) {
1042 - include( "$IP/../wmf-config/PoolCounterSettings.php" );
 1006+ include( "$wmfConfigDir/PoolCounterSettings.php" );
10431007 }
10441008
10451009 wfProfileOut( "$fname-ext-include1" );
10461010 wfProfileIn( "$fname-misc2" );
10471011
1048 -/*
1049 -# Per site additional spam blacklists
1050 -# -- hashar Sat Jan 6 21:27:21 UTC 2007
1051 -switch( $wgDBname ) {
1052 - 'frwiki':
1053 -# $wgSpamBlacklistFiles[] = 'http://fr.wikipedia.org/w/index.php?title=<INSERT_TITLE>&action=raw&sb_ver=1';
1054 - break;
1055 - default:
1056 -
1057 -}
1058 -*/
1059 -
10601012 # Upload spam system
10611013 // SHA-1 hashes of blocked files:
10621014 # FIXME should check file size too
@@ -1122,6 +1074,7 @@
11231075 'name' => 'local',
11241076 'directory' => $wgUploadDirectory,
11251077 'url' => $wgUploadBaseUrl ? $wgUploadBaseUrl . $wgUploadPath : $wgUploadPath,
 1078+ 'scriptDirUrl' => $wgScriptPath,
11261079 'hashLevels' => 2,
11271080 'thumbScriptUrl' => $wgThumbnailScriptPath,
11281081 'transformVia404' => true,
@@ -1136,13 +1089,13 @@
11371090 'class' => 'ForeignDBViaLBRepo',
11381091 'name' => 'shared',
11391092 'directory' => '/mnt/upload6/wikipedia/commons',
1140 - 'url' => 'http://upload.wikimedia.org/wikipedia/commons',
 1093+ 'url' => "$urlprotocol//upload.wikimedia.org/wikipedia/commons",
11411094 'hashLevels' => 2,
11421095 'thumbScriptUrl' => false,
11431096 'transformVia404' => true,
11441097 'hasSharedCache' => true,
1145 - 'descBaseUrl' => 'http://commons.wikimedia.org/wiki/File:',
1146 - 'scriptDirUrl' => 'http://commons.wikimedia.org/w',
 1098+ 'descBaseUrl' => "$urlprotocol//commons.wikimedia.org/wiki/File:",
 1099+ 'scriptDirUrl' => "$urlprotocol//commons.wikimedia.org/w",
11471100 'fetchDescription' => true,
11481101 'wiki' => 'commonswiki',
11491102 'initialCapital' => true,
@@ -1152,23 +1105,24 @@
11531106
11541107 if($wgDBname == 'nostalgiawiki') {
11551108 # Link back to current version from the archive funhouse
 1109+ # wgSiteNotice should use $urlprotocol when wikipedia domain has https enabled
11561110 if( ( isset( $_REQUEST['title'] ) && ( $title = $_REQUEST['title'] ) )
11571111 || (isset( $_SERVER['PATH_INFO'] ) && ( $title = substr( $_SERVER['PATH_INFO'], 1 ) ) ) ) {
11581112 if( preg_match( '/^(.*)\\/Talk$/', $title, $matches ) ) {
11591113 $title = 'Talk:' . $matches[1];
11601114 }
1161 - $wgSiteNotice = '[http://en.wikipedia.org/wiki/' .
 1115+ $wgSiteNotice = "[$urlprotocol//en.wikipedia.org/wiki/" .
11621116 htmlspecialchars( urlencode( $title ) ) .
11631117 ' See the current version of this page on Wikipedia]';
11641118 } else {
1165 - $wgSiteNotice = '[http://en.wikipedia.org/ See current Wikipedia]';
 1119+ $wgSiteNotice = "[$urlprotocol//en.wikipedia.org/ See current Wikipedia]";
11661120 }
11671121 $wgDefaultUserOptions['highlightbroken'] = 0;
11681122 }
11691123
11701124 $wgUseHashTable = true;
11711125
1172 -$wgCopyrightIcon = '<a href="http://wikimediafoundation.org/"><img src="http://bits.wikimedia.org/images/wikimedia-button.png" width="88" height="31" alt="Wikimedia Foundation"/></a>';
 1126+$wgCopyrightIcon = '<a href="' . $urlprotocol . '//wikimediafoundation.org/"><img src="' . $urlprotocol . '//bits.wikimedia.org/images/wikimedia-button.png" width="88" height="31" alt="Wikimedia Foundation"/></a>';
11731127
11741128 # For Special:Cite, we only want it on wikipedia (but can't count on $site),
11751129 # not on these fakers.
@@ -1199,7 +1153,7 @@
12001154
12011155 if( $wgUseLuceneSearch ) {
12021156 wfProfileIn( "$fname-lucene" );
1203 - include( $IP.'/../wmf-config/lucene.php' );
 1157+ include( "$wmfConfigDir/lucene.php" );
12041158 wfProfileOut( "$fname-lucene" );
12051159 }
12061160
@@ -1235,6 +1189,7 @@
12361190 // Newer entries
12371191 if( $wgDBname == 'zhwiki' ) $wgCacheEpoch = '20060528093500'; # parser bug?
12381192 if( $wgDBname == 'lawikibooks' ) $wgCacheEpoch = '20060610090000'; # sidebar bug
 1193+if ( $wmgHTTPSExperiment ) $wgCacheEpoch = '20110714183000';
12391194
12401195 #$wgThumbnailEpoch = '20060227114700'; # various rsvg and imagemagick fixes
12411196 $wgThumbnailEpoch = '20051227114700'; # various rsvg and imagemagick fixes
@@ -1264,6 +1219,12 @@
12651220 }
12661221 $wgExtensionFunctions[] = 'wfLogXFF';
12671222
 1223+// bug 24313, turn off minordefault on enwiki
 1224+if( $wgDBname == 'enwiki' ) {
 1225+ $wgHiddenPrefs[] = 'minordefault';
 1226+}
 1227+
 1228+
12681229 wfProfileOut( "$fname-misc3" );
12691230 wfProfileIn( "$fname-ext-include2" );
12701231
@@ -1279,7 +1240,6 @@
12801241 include( $IP.'/extensions/intersection/DynamicPageList.php' );
12811242 }
12821243
1283 -# 2005-10-12 -ævar
12841244 # 2010-01-22 hashar: disabled as per 16878
12851245 //include( $IP.'/extensions/CrossNamespaceLinks/SpecialCrossNamespaceLinks.php' );
12861246
@@ -1312,22 +1272,15 @@
13131273 if ( $wmgUseRSSExtension ) {
13141274 include( "$IP/extensions/RSS/RSS.php" );
13151275 #$wgRSSProxy = 'url-downloader.wikimedia.org:8080';
 1276+ $wgRSSAllowedFeeds = $wmgRSSAllowedFeeds;
13161277 }
13171278
13181279 wfProfileOut( "$fname-ext-include2" );
13191280 wfProfileIn( "$fname-misc4" );
13201281
1321 -# 2005-09-30: Disabled for potential XSS issue -ævar
1322 -#include 'extensions/PageCSS/PageCSS.php';
13231282
13241283 $wgDisabledActions = array( 'credits' );
1325 -# $wgDisableHardRedirects = true; // moved to InitializeSettings.php
13261284
1327 -# category rss feed extension, sponsored by kennisnet
1328 -#include("extensions/catfeed/catfeed.php");
1329 -# why is there, AGAIN, no explanation of safety or limitation to known places?
1330 -
1331 -
13321285 # Process group overrides
13331286
13341287 # makesysop permission removed, https://bugzilla.wikimedia.org/show_bug.cgi?id=23081
@@ -1375,13 +1328,6 @@
13761329 #$wgReadOnly = '5 min DB server maintenance...';
13771330 #$wgReadOnly = 'Read-only during network issues';
13781331
1379 -# fcache stuff -kate
1380 -#$fcuse = array("metawiki");
1381 -#if (in_array($wgDBname, $fcuse) && file_exists('/mnt/fcache/fcache_is_mounted')) {
1382 -# $wgUseFileCache = true;
1383 -# /** Directory where the cached page will be saved */
1384 -# $wgFileCacheDirectory = "/mnt/fcache/$wgDBname/";
1385 -#}
13861332
13871333 if ( $cluster != 'pmtpa' ) {
13881334 $wgHTTPTimeout = 10;
@@ -1398,23 +1344,14 @@
13991345 }
14001346 }
14011347 */
1402 -/*
1403 -if ( $wgDBname == 'enwiki' ) {
1404 - require( "$IP/extensions/CookieBlock/CookieBlock.php" );
14051348
1406 - $wgCookieBlocks = array(
1407 - # Test -- block Tim on aawiki for a day
1408 - #'d0e2a4080155d22cc2340e64b9930689' => array( 37, 86400 ),
1409 - );
1410 -}*/
1411 -
14121349 // disabling so we don't worry about xmlrpc
14131350 // 2006-10-21
14141351 #include( $IP.'/extensions/MWBlocker/MWBlockerHook.php' );
14151352 #$mwBlockerHost = 'larousse';
14161353 #$mwBlockerPort = 8126;
14171354 ##$wgProxyList = array_flip( array_map( 'trim', file( 'udp://10.0.5.8:8420/mwblocker' ) ) );
1418 -$wgProxyList = "$IP/../wmf-config/mwblocker.log";
 1355+$wgProxyList = "$wmfConfigDir/mwblocker.log";
14191356
14201357 if( getenv( 'WIKIDEBUG' ) ) {
14211358 $wgDebugLogFile = '/tmp/wiki.log';
@@ -1442,14 +1379,14 @@
14431380 $wgBrowserBlackList[] = '/^Lynx/';
14441381
14451382 // Vandal checks
1446 -require( $IP.'/../wmf-config/checkers.php' );
 1383+require( "$wmfConfigDir/checkers.php" );
14471384
14481385 // Experimental ScanSet extension
14491386 if ( $wgDBname == 'enwikisource' ) {
14501387 require( $IP.'/extensions/ScanSet/ScanSet.php' );
14511388 $wgScanSetSettings = array(
14521389 'baseDirectory' => '/mnt/upload6/wikipedia/commons/scans',
1453 - 'basePath' => 'http://upload.wikimedia.org/wikipedia/commons/scans',
 1390+ 'basePath' => "$urlprotocol//upload.wikimedia.org/wikipedia/commons/scans",
14541391 );
14551392 }
14561393
@@ -1483,7 +1420,7 @@
14841421
14851422 // Customize URL handling for secure.wikimedia.org HTTPS logins
14861423 if( $secure ) {
1487 - require( "$IP/../wmf-config/secure.php" );
 1424+ require( "$wmfConfigDir/secure.php" );
14881425 } elseif ( isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] ) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' ) {
14891426 // New HTTPS service on regular URLs
14901427 $wgServer = preg_replace( '/^http:/', 'https:', $wgServer );
@@ -1550,19 +1487,20 @@
15511488 }
15521489 }
15531490
1554 -
1555 -
15561491 require( "$IP/extensions/Oversight/HideRevision.php" );
1557 -$wgGroupPermissions['oversight']['hiderevision'] = true;
1558 -$wgGroupPermissions['oversight']['oversight'] = true;
 1492+$wgGroupPermissions['oversight']['hiderevision'] = false;
 1493+//$wgGroupPermissions['oversight']['oversight'] = true;
15591494
15601495 if ( extension_loaded( 'wikidiff2' ) ) {
15611496 $wgExternalDiffEngine = 'wikidiff2';
15621497 }
15631498
15641499 if( function_exists( 'dba_open' ) && file_exists( "$IP/cache/interwiki.cdb" ) ) {
1565 - $wgInterwikiCache = "$IP/cache/interwiki.cdb";
 1500+ $wgInterwikiCache = "$IP/cache/interwiki.cdb";
15661501 }
 1502+if( $wmgHTTPSExperiment && function_exists( 'dba_open' ) && file_exists( "$IP/cache/interwiki-pr.cdb" ) ) {
 1503+ $wgInterwikiCache = "$IP/cache/interwiki-pr.cdb";
 1504+}
15671505
15681506 $wgDebugLogGroups["ExternalStoreDB"] = "udp://10.0.5.8:8420/external";
15691507
@@ -1632,6 +1570,7 @@
16331571 '.wikiversity.org' => 'enwikiversity',
16341572 '.mediawiki.org' => 'mediawikiwiki',
16351573 'species.wikimedia.org' => 'specieswiki',
 1574+ 'incubator.wikimedia.org' => 'incubatorwiki',
16361575 );
16371576 # Don't autologin to self
16381577 if ( isset( $wgCentralAuthAutoLoginWikis[$wmgSecondLevelDomain] ) ) {
@@ -1676,31 +1615,12 @@
16771616 }
16781617 }
16791618
1680 -# Dismissable site notice demo
1681 -//if ( $wgDBname == 'testwiki' ) {
1682 -// require( "$IP/sitenotice.php" );
1683 -//}
1684 -
16851619 // taking it live 2006-12-15 brion
16861620 if( $wmgUseDismissableSiteNotice ) {
16871621 require( "$IP/extensions/DismissableSiteNotice/DismissableSiteNotice.php" );
16881622 }
16891623 $wgMajorSiteNoticeID = '2';
16901624
1691 -#$wgSiteNotice = "<span class=\"ltr\">All community members are invited to give [[m:Board elections/2007/Candidates|Board Election Candidates]] their [[m:Board elections/2007/Endorsements|endorsements]].</span>";
1692 -
1693 -
1694 -//require( "$IP/extensions/UsernameBlacklist/UsernameBlacklist.php" ); //Removed per bug 15888
1695 -
1696 -/*
1697 -function wfInitDonationLinkMessage() {
1698 - global $wgMessageCache;
1699 - $wgMessageCache->addMessage( 'sitenotice_link', '[http://wikimediafoundation.org/wiki/Wikimedia_thanks_Virgin_Unite Virgin Unite]' );
1700 -}
1701 -$wgExtensionFunctions[] = 'wfInitDonationLinkMessage';
1702 -
1703 -*/
1704 -
17051625 $wgHooks['LoginAuthenticateAudit'][] = 'logBadPassword';
17061626 $wgDebugLogGroups['badpass'] = 'udp://10.0.5.8:8420/badpass';
17071627 $wgDebugLogGroups['ts_badpass'] = 'udp://10.0.5.8:8420/ts_badpass';
@@ -1796,16 +1716,22 @@
17971717 if( $secure ) {
17981718 # Don't load the JS from an insecure source!
17991719 $wgCentralPagePath = 'https://secure.wikimedia.org/wikipedia/meta/w/index.php';
1800 - } else {
1801 - $wgCentralPagePath = 'http://meta.wikimedia.org/w/index.php';
 1720+ } elseif ( $wgDBname == 'testwiki' ) {
 1721+ $wgCentralPagePath = "$urlprotocol//test.wikipedia.org/w/index.php";
 1722+ } else {
 1723+ $wgCentralPagePath = "$urlprotocol//meta.wikimedia.org/w/index.php";
18021724 }
18031725
18041726 $wgNoticeProject = $wmgNoticeProject;
1805 - $wgCentralDBname = 'metawiki';
 1727+
 1728+ if ( $wgDBname == 'testwiki' ) {
 1729+ $wgCentralDBname = 'testwiki';
 1730+ } else {
 1731+ $wgCentralDBname = 'metawiki';
 1732+ }
18061733
1807 - $wgCentralNoticeLoader = $wmgCentralNoticeLoader;
 1734+ $wgCentralNoticeLoader = $wmgCentralNoticeLoader;
18081735
1809 -
18101736 /*
18111737 $wgNoticeTestMode = true;
18121738 $wgNoticeEnabledSites = array(
@@ -1830,26 +1756,24 @@
18311757 # Wed evening -- all on!
18321758 $wgNoticeTimeout = 3600;
18331759 $wgNoticeServerTimeout = 3600; // to let the counter update
1834 - $wgNoticeCounterSource = 'http://wikimediafoundation.org/wiki/Special:ContributionTotal' .
 1760+ $wgNoticeCounterSource = $urlprotocol . '//wikimediafoundation.org/wiki/Special:ContributionTotal' .
18351761 '?action=raw' .
18361762 '&start=20101112000000' . // FY 10-11
18371763 '&fudgefactor=660000'; // fudge for pledged donations not in CRM
18381764
1839 - if( $wgDBname == 'metawiki' ) {
 1765+ if( $wgDBname == 'metawiki' || $wgDBname == 'testwiki' ) {
18401766 $wgNoticeInfrastructure = true;
18411767 } else {
18421768 $wgNoticeInfrastructure = false;
18431769 }
18441770 }
18451771
1846 -
18471772 // Load our site-specific l10n extensions
18481773 include "$IP/extensions/WikimediaMessages/WikimediaMessages.php";
18491774
18501775 if ( $wmgUseWikimediaLicenseTexts ) {
18511776 include "$IP/extensions/WikimediaMessages/WikimediaLicenseTexts.php";
18521777 }
1853 -
18541778
18551779 function wfNoDeleteMainPage( &$title, &$user, $action, &$result ) {
18561780 global $wgMessageCache, $wgDBname;
@@ -1885,7 +1809,7 @@
18861810 #$wgCollectionMWServeURL = 'http://bindery.wikimedia.org/cgi-bin/mwlib.cgi';
18871811 #$wgCollectionMWServeURL = 'http://bindery.wikimedia.org:8080/mw-serve/';
18881812 #$wgCollectionMWServeURL = 'http://erzurumi.wikimedia.org:8080/mw-serve/';
1889 - $wgCollectionMWServeURL = 'http://pdf1.wikimedia.org:8080/mw-serve/';
 1813+ $wgCollectionMWServeURL = "http://pdf1.wikimedia.org:8080/mw-serve/";
18901814
18911815 // MediaWiki namespace is not a good default
18921816 $wgCommunityCollectionNamespace = NS_PROJECT;
@@ -1901,47 +1825,23 @@
19021826 'odf' => 'OpenDocument Text',
19031827 'zim' => 'openZIM',
19041828 );
 1829+
 1830+ $wgLicenseURL = "$urlprotocol//en.wikipedia.org/w/index.php?title=Wikipedia:Text_of_the_GNU_Free_Documentation_License&action=raw";
19051831
1906 - $wgLicenseURL = 'http://en.wikipedia.org/w/index.php?title=Wikipedia:Text_of_the_GNU_Free_Documentation_License&action=raw';
1907 -
19081832 $wgCollectionPortletForLoggedInUsersOnly = $wmgCollectionPortletForLoggedInUsersOnly;
19091833 $wgCollectionArticleNamespaces = $wmgCollectionArticleNamespaces;
19101834 }
19111835
19121836 // Testing internally
1913 -include "$IP/../wmf-config/secret-projects.php";
 1837+include "$wmfConfigDir/secret-projects.php";
19141838
1915 -/*
1916 -if ( $wgDBname == 'idwiki' ) {
1917 - # Account creation throttle disabled for outreach event
1918 - # Contact: Siska Doviana <serenity@gmail.com>
1919 - if ( time() > strtotime( '2008-08-08T08:00 +7:00' )
1920 - && time() < strtotime( '2008-08-08T19:00 +7:00' ) )
1921 - {
1922 - $wgAccountCreationThrottle = 300;
1923 - }
1924 -}
1925 -*/
1926 -
1927 -/*
1928 -if ( $wgDBname == 'enwiki' ) {
1929 - # Account creation throttle disabled for outreach event
1930 - # Contact: fschulenburg@wikimedia.org
1931 - if ( time() > strtotime( '2009-10-19T11:00 -7:00' )
1932 - && time() < strtotime( '2009-10-19T16:00 -7:00' ) )
1933 - {
1934 - $wgAccountCreationThrottle = 300;
1935 - }
1936 -}
1937 - */
1938 -
19391839 if ( $wgDBname == 'elwiki' ) {
19401840 # Account creation throttle disabled for editing workshop
19411841 # Contact: ariel@wikimedia.org (irc: apergos)
1942 - if ( time() > strtotime( '2011-05-16T17:00 +3:00' )
1943 - && time() < strtotime( '2011-05-16T20:00 +3:00') )
 1842+ if ( time() > strtotime( '2011-06-16T13:00 +3:00' )
 1843+ && time() < strtotime( '2011-06-16T20:00 +3:00') )
19441844 {
1945 - $wgAccountCreationThrottle = 40;
 1845+ $wgAccountCreationThrottle = 50;
19461846 }
19471847 }
19481848
@@ -1967,7 +1867,7 @@
19681868
19691869 if( $wmgUseCodeReview ) {
19701870 include "$IP/extensions/CodeReview/CodeReview.php";
1971 - include( $IP.'/../wmf-config/codereview.php');
 1871+ include( "$wmfConfigDir/codereview.php" );
19721872 $wgSubversionProxy = 'http://codereview-proxy.wikimedia.org/index.php';
19731873
19741874 $wgGroupPermissions['user']['codereview-add-tag'] = false;
@@ -1979,6 +1879,7 @@
19801880 $wgGroupPermissions['user']['codereview-associate'] = false;
19811881
19821882 $wgGroupPermissions['user']['codereview-post-comment'] = true;
 1883+ $wgGroupPermissions['user']['codereview-signoff'] = true;
19831884
19841885 $wgGroupPermissions['coder']['codereview-add-tag'] = true;
19851886 $wgGroupPermissions['coder']['codereview-remove-tag'] = true;
@@ -1999,16 +1900,16 @@
20001901
20011902 if( $wmgUseAbuseFilter ) {
20021903 include "$IP/extensions/AbuseFilter/AbuseFilter.php";
2003 - include( $IP.'/../wmf-config/abusefilter.php');
 1904+ include( "$wmfConfigDir/abusefilter.php" );
20041905 }
20051906
20061907 if ($wmgUseCommunityVoice == true) {
2007 - include ( "$IP/extensions/ClientSide/ClientSide.php" );
2008 - include ( "$IP/extensions/CommunityVoice/CommunityVoice.php" );
 1908+ include ( "$IP/extensions/ClientSide/ClientSide.php" );
 1909+ include ( "$IP/extensions/CommunityVoice/CommunityVoice.php" );
20091910 }
20101911
20111912 if ($wmgUsePdfHandler == true) {
2012 - include ("$IP/extensions/PdfHandler/PdfHandler.php" );
 1913+ include ("$IP/extensions/PdfHandler/PdfHandler.php" );
20131914 }
20141915
20151916 if ($wmgUseUsabilityInitiative) {
@@ -2023,7 +1924,7 @@
20241925 //if ( $wgDBname == 'testwiki' ) { $wgUsabilityInitiativeResourceMode = 'raw'; }
20251926 // Disable experimental things
20261927 $wgWikiEditorFeatures['templateEditor'] =
2027 - $wgWikiEditorFeatures['preview'] =
 1928+ $wgWikiEditorFeatures['preview'] =
20281929 $wgWikiEditorFeatures['previewDialog'] =
20291930 $wgWikiEditorFeatures['publish'] =
20301931 $wgWikiEditorFeatures['templates'] =
@@ -2046,9 +1947,6 @@
20471948 } else {
20481949 $wgHiddenPrefs[] = 'vector-collapsiblenav';
20491950 }
2050 - if( $wgDBname == 'enwiki' ) {
2051 - $wgHiddenPrefs[] = 'minordefault';
2052 - }
20531951
20541952 if ($wmgUsabilityPrefSwitch) {
20551953 require_once( "$IP/extensions/PrefStats/PrefStats.php" );
@@ -2066,12 +1964,10 @@
20671965 $wgPrefSwitchShowLinks = false;
20681966 }
20691967
2070 -
20711968 if ($wmgUsabilityEnforce) {
20721969 $wgEditToolbarGlobalEnable = false;
20731970 $wgDefaultUserOptions['usebetatoolbar'] = 1;
20741971 $wgDefaultUserOptions['usebetatoolbar-cgd'] = 1;
2075 -
20761972 }
20771973
20781974 // For Babaco... these are still experimental, won't be on by default
@@ -2086,6 +1982,7 @@
20871983 require "$IP/extensions/ClickTracking/ClickTracking.php";
20881984
20891985 $wgClickTrackThrottle = $wmgClickTrackThrottle;
 1986+ $wgClickTrackingLog = $wmgClickTrackingLog;
20901987 # Disable Special:ClickTracking, not secure yet (as of r59230)
20911988 unset( $wgSpecialPages['ClickTracking'] );
20921989 # Remove the clicktracking permission because people see it in ListGroupRights and wonder what it does
@@ -2133,7 +2030,7 @@
21342031 }
21352032
21362033 if ( $wmgUseLiquidThreads ) {
2137 - require_once( "$IP/../wmf-config/liquidthreads.php" );
 2034+ require_once( "$wmfConfigDir/liquidthreads.php" );
21382035 }
21392036
21402037 if ( $wmgUseFundraiserPortal ) {
@@ -2143,7 +2040,7 @@
21442041 global $wgScriptPath; // SSL may change this after CommonSettings
21452042 global $wgFundraiserPortalDirectory, $wgFundraiserPortalPath, $wgFundraiserImageUrl;
21462043 $wgFundraiserPortalDirectory = "/mnt/upload6/portal";
2147 - $wgFundraiserPortalPath = "http://upload.wikimedia.org/portal";
 2044+ $wgFundraiserPortalPath = "$urlprotocol//upload.wikimedia.org/portal";
21482045 $wgFundraiserImageUrl = "$wgScriptPath/extensions/FundraiserPortal/images";
21492046 }
21502047 }
@@ -2194,8 +2091,8 @@
21952092
21962093 $wgArticleFeedbackTracking = array(
21972094 'buckets' => array(
2198 - 'track' => 10,
2199 - 'ignore' => 90,
 2095+ 'track' => 1.35,
 2096+ 'ignore' => 98.65,
22002097 //'track'=>0, 'ignore' => 100
22012098 ),
22022099 'version' => 8,
@@ -2220,9 +2117,10 @@
22212118
22222119
22232120 $wgDefaultUserOptions['thumbsize'] = $wmgThumbsizeIndex;
 2121+$wgDefaultUserOptions['showhiddencats'] = $wmgShowHiddenCats;
22242122
22252123 if ( $wgDBname == 'strategywiki' ) {
2226 - require_once( "$IP/extensions/StrategyWiki/ActiveStrategy/ActiveStrategy.php" );
 2124+ require_once( "$IP/extensions/StrategyWiki/ActiveStrategy/ActiveStrategy.php" );
22272125 }
22282126
22292127 if ( $wgDBname == 'testwiki' || $wgDBname == 'foundationwiki' ) {
@@ -2264,7 +2162,7 @@
22652163 if ( $wgUseVariablePage ) {
22662164 include( "$IP/extensions/VariablePage/VariablePage.php");
22672165 $wgVariablePagePossibilities = array(
2268 - 'http://wikimediafoundation.org/wiki/WMFJA1/en' => 100,
 2166+ "$urlprotocol//wikimediafoundation.org/wiki/WMFJA1/en" => 100,
22692167 );
22702168
22712169 $wgVariablePageShowSidebarLink = true;
@@ -2278,14 +2176,14 @@
22792177 // ContributionTracking for handling PayPal redirects
22802178 if ( $wgUseContributionTracking ) {
22812179 include( "$IP/extensions/ContributionTracking/ContributionTracking.php" );
2282 - include( "$IP/../wmf-config/contribution-tracking-setup.php");
 2180+ include( "$wmfConfigDir/contribution-tracking-setup.php" );
22832181 $wgContributionTrackingPayPalIPN = "https://civicrm.wikimedia.org/fundcore_gateway/paypal";
22842182 $wgContributionTrackingPayPalRecurringIPN = "https://civicrm.wikimedia.org/IPNListener_Recurring.php";
22852183 }
22862184
22872185 if ( $wmgUseUploadWizard ) {
22882186 require_once( "$IP/extensions/UploadWizard/UploadWizard.php" );
2289 - $wgUploadStashScalerBaseUrl = "http://upload.wikimedia.org/$site/$lang/thumb/temp";
 2187+ $wgUploadStashScalerBaseUrl = "$urlprotocol//upload.wikimedia.org/$site/$lang/thumb/temp";
22902188 $wgUploadWizardConfig = array(
22912189 #'debug' => true,
22922190 'disableResourceLoader' => false,
@@ -2312,6 +2210,8 @@
23132211
23142212 if ( $wmgUseGoogleNewsSitemap ) {
23152213 include( "$IP/extensions/GoogleNewsSitemap/GoogleNewsSitemap.php" );
 2214+ $wgGNSMfallbackCategory = $wmgGNSMfallbackCategory;
 2215+ $wgGNSMcommentNamespace = $wmgGNSMcommentNamespace;
23162216 }
23172217
23182218 if ( $wmgUseCLDR ) {
@@ -2324,22 +2224,22 @@
23252225 # $wgAPIModules['parse'] = 'ApiDisabled';
23262226 #}
23272227
2328 -if ( $wgDBname == 'ptwikibooks' ) {
2329 - # Account creation throttle disabled for "Logística 2011" project from
2330 - # [[FCT]] / [[New University of Lisbon]]
2331 - $wgAccountCreationThrottle = 100;
2332 -}
2333 -
2334 -$wgObjectCaches['ehcache-multiwrite'] = array(
 2228+$wgObjectCaches['mysql-multiwrite'] = array(
23352229 'class' => 'MultiWriteBagOStuff',
23362230 'caches' => array(
23372231 0 => array(
2338 - 'class' => 'EhcacheBagOStuff',
2339 - 'servers' => array(
2340 - '10.0.6.50:8080',
 2232+ 'class' => 'SqlBagOStuff',
 2233+ 'server' => array(
 2234+ 'host' => '10.0.6.50', # db40
 2235+ 'dbname' => 'parsercache',
 2236+ 'user' => $wgDBuser,
 2237+ 'password' => $wgDBpassword,
 2238+ 'type' => 'mysql',
 2239+ 'flags' => 0,
23412240 ),
2342 - 'connectTimeout' => 0.5,
2343 - 'timeout' => 5,
 2241+ 'purgePeriod' => 0,
 2242+ 'tableName' => 'pc',
 2243+ 'shards' => 256,
23442244 ),
23452245 1 => array(
23462246 'factory' => 'ObjectCache::newMemcached',
@@ -2347,10 +2247,9 @@
23482248 )
23492249 );
23502250
2351 -
23522251 # Style version appendix
23532252 # Shouldn't be needed much in 1.17 due to ResourceLoader, but some legacy things still need it
2354 -$wgStyleVersion .= '-2';
 2253+$wgStyleVersion .= '-3';
23552254
23562255 // DO NOT DISABLE WITHOUT CONTACTING PHILIPPE / LEGAL!
23572256 // Installed by Andrew, 2011-04-26
@@ -2363,12 +2262,30 @@
23642263 require_once( "$IP/extensions/WikimediaIncubator/WikimediaIncubator.php" );
23652264 }
23662265
 2266+if ( $wmgUseWikiLove ) {
 2267+ require_once( "$IP/extensions/WikiLove/WikiLove.php" );
 2268+ $wgWikiLoveLogging = true;
 2269+ if ( $wmgWikiLoveDefault ) {
 2270+ $wgDefaultUserOptions['wikilove-enabled'] = 1;
 2271+ }
 2272+}
23672273
 2274+if ( $wmgUseSubPageList3 ) {
 2275+ include( "$IP/extensions/SubPageList3/SubPageList3.php" );
 2276+}
 2277+
 2278+if ( $wmgHTTPSExperiment ) {
 2279+ $wgFooterIcons["poweredby"]["mediawiki"]["url"] = "//www.mediawiki.org/";
 2280+ if ( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' ) {
 2281+ $wgCookieSecure = true;
 2282+ }
 2283+}
 2284+
23682285 # THIS MUST BE AFTER ALL EXTENSIONS ARE INCLUDED
23692286 #
2370 -# REALlY ... were not kidding here ... NO EXTENSIONS AFTER
 2287+# REALLY ... were not kidding here ... NO EXTENSIONS AFTER
23712288
2372 -require( "$IP/../wmf-config/ExtensionMessages.php" );
 2289+require( "$wmfConfigDir/ExtensionMessages.php" );
23732290
23742291 wfProfileOut( "$fname-misc5" );
23752292 wfProfileOut( $fname );

Follow-up revisions

RevisionCommit summaryAuthorDate
r92273Added back some missing $wgVersionDirectory uses lost in r92272aaron18:46, 15 July 2011

Comments

#Comment by Catrope (talk | contribs)   18:39, 15 July 2011
-	$wgExtensionAssetsPath = '[http://test.wikipedia.org/w/extensions-' http://test.wikipedia.org/w/extensions-'] . $wgVersionDirectory;
-	$wgStyleSheetPath = '[http://test.wikipedia.org/w/skins-' http://test.wikipedia.org/w/skins-'] . $wgVersionDirectory;
+	$wgExtensionAssetsPath = "$urlprotocol//test.wikipedia.org/w/extensions-1.17";
+	$wgStyleSheetPath = "$urlprotocol//test.wikipedia.org/w/skins-1.17";
 
 } else {
-	$wgExtensionAssetsPath = '[http://bits.wikimedia.org/w/extensions-' http://bits.wikimedia.org/w/extensions-'] . $wgVersionDirectory;
-	$wgStyleSheetPath = '[http://bits.wikimedia.org/skins-' http://bits.wikimedia.org/skins-'] . $wgVersionDirectory;
+	$wgExtensionAssetsPath = "$urlprotocol//bits.wikimedia.org/w/extensions-1.17";
+	$wgStyleSheetPath = "$urlprotocol//bits.wikimedia.org/skins-1.17";

Note that $wgVersionDirectory was removed here, it should be put back at some point.

#Comment by Aaron Schulz (talk | contribs)   18:47, 15 July 2011

Yeah, that got lost in the crap. Added back.

Status & tagging log