r93123 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93122‎ | r93123 | r93124 >
Date:21:29, 25 July 2011
Author:aaron
Status:ok
Tags:
Comment:
merged updates
Modified paths:
  • /trunk/tools/mwmultiversion/wmf-config/CommonSettings.php (modified) (history)

Diff [purge]

Index: trunk/tools/mwmultiversion/wmf-config/CommonSettings.php
@@ -208,7 +208,7 @@
209209 $wgStockPath = '/images';
210210 $wgScript = $wgScriptPath.'/index.php';
211211 $wgRedirectScript = $wgScriptPath.'/redirect.php';
212 -if ( $wgDBname != 'testwiki' ) {
 212+if ( $wgDBname != 'testwiki' && isset( $_SERVER['SERVER_NAME'] ) ) {
213213 // Make testing JS/skin changes easy by not running load.php through bits for testwiki
214214 $wgLoadScript = "$urlprotocol//bits.wikimedia.org/{$_SERVER['SERVER_NAME']}/load.php";
215215 }
@@ -1206,7 +1206,7 @@
12071207
12081208 # XFF log for vandal tracking
12091209 function wfLogXFF() {
1210 - if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
 1210+ if ( (@$_SERVER['REQUEST_METHOD']) == 'POST' ) {
12111211 $uri = ( $_SERVER['HTTPS'] ? 'https://' : 'http://' ) .
12121212 $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
12131213 wfErrorLog(
@@ -2041,6 +2041,7 @@
20422042 require "$IP/extensions/FundraiserPortal/FundraiserPortal.php";
20432043 $wgExtensionFunctions[] = 'setupFundraiserPortal';
20442044 function setupFundraiserPortal() {
 2045+ global $urlprotocol;
20452046 global $wgScriptPath; // SSL may change this after CommonSettings
20462047 global $wgFundraiserPortalDirectory, $wgFundraiserPortalPath, $wgFundraiserImageUrl;
20472048 $wgFundraiserPortalDirectory = "/mnt/upload6/portal";
@@ -2096,8 +2097,8 @@
20972098
20982099 $wgArticleFeedbackTracking = array(
20992100 'buckets' => array(
2100 - 'track' => 0.318,
2101 - 'ignore' => 99.682,
 2101+ 'track' => 0.27,
 2102+ 'ignore' => 99.73,
21022103 //'track'=>0, 'ignore' => 100
21032104 ),
21042105 'version' => 8,

Status & tagging log