r53264 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53263‎ | r53264 | r53265 >
Date:20:45, 14 July 2009
Author:brion
Status:ok (Comments)
Tags:
Comment:
Adjust paths in the Wikimedia-specific command-line config hacks. Separating out most of the custom config files...
Modified paths:
  • /branches/wmf-deployment/maintenance/commandLine.inc (modified) (history)

Diff [purge]

Index: branches/wmf-deployment/maintenance/commandLine.inc
@@ -116,14 +116,15 @@
117117 $wgUseNormalUser = false;
118118 }
119119
120 -if ( file_exists( dirname(__FILE__).'/wikimedia-mode' ) ) {
 120+// Fixme: replace this hack with general farm-friendly code
 121+if ( file_exists( "$IP/wmf-config/wikimedia-mode" ) ) {
121122 $wgWikiFarm = true;
122123 $cluster = 'pmtpa';
123124 require_once( "$IP/includes/AutoLoader.php" );
124125 require_once( "$IP/includes/SiteConfiguration.php" );
125126
126127 # Get $wgConf
127 - require( "$IP/wgConf.php" );
 128+ require( "$IP/wmf-config/wgConf.php" );
128129
129130 if ( empty( $wgNoDBParam ) ) {
130131 # Check if we were passed a db name
@@ -170,7 +171,7 @@
171172
172173 #require_once( $IP.'/includes/ProfilerStub.php' );
173174 require( $IP.'/includes/Defines.php' );
174 - require( $IP.'/CommonSettings.php' );
 175+ require( $IP.'/wmf-config/CommonSettings.php' );
175176 if ( !$wgUseNormalUser ) {
176177 require( $IP.'/AdminSettings.php' );
177178 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r56213Forward-port r53264 from wmf-deployment branch: "Adjust paths in the Wikimedi...brion23:18, 11 September 2009

Comments

#Comment by Brion VIBBER (talk | contribs)   23:19, 11 September 2009

Forward-ported to trunk in r56213

Status & tagging log