Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3730
commandLine.inc.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:36 PM
2014-11-21 21:36:43 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
commandLine.inc.diff
View Options
--- commandLine.inc.original 2007-02-21 13:31:07.000000000 -0800
+++ commandLine.inc.new 2007-02-21 13:36:54.000000000 -0800
@@ -34,7 +34,10 @@
if ( !isset( $optionsWithArgs ) ) {
$optionsWithArgs = array();
}
-$optionsWithArgs[] = 'conf'; # For specifying the location of LocalSettings.php
+# For specifying the location of:
+# LocalSettings.php (conf)
+# AdminSettings.php (aconf)
+$optionsWithArgs = array( 'conf', 'aconf' );
$self = array_shift( $argv );
$IP = realpath( dirname( __FILE__ ) . '/..' );
@@ -169,6 +172,11 @@
} else {
$settingsFile = "$IP/LocalSettings.php";
}
+ if ( isset( $options['aconf'] ) ) {
+ $aSettingsFile = $options['aconf'];
+ } else {
+ $aSettingsFile = "$IP/AdminSettings.php";
+ }
if ( ! is_readable( $settingsFile ) ) {
print "A copy of your installation's LocalSettings.php\n" .
@@ -182,9 +190,9 @@
require_once( $settingsFile );
ini_set( 'include_path', ".$sep$IP$sep$IP/includes$sep$IP/languages$sep$IP/maintenance" );
- if ( is_readable( $IP.'/AdminSettings.php' ) ) {
- require_once( $IP.'/AdminSettings.php' );
- }
+ if ( is_readable( $aSettingsFile ) ) {
+ require_once( $aSettingsFile );
+ }
}
# Turn off output buffering again, it might have been turned on in the settings files
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3297
Default Alt Text
commandLine.inc.diff (1 KB)
Attached To
Mode
T11058: Multiple LocalSettings.php with single codebase fails in update.php
Attached
Detach File
Event Timeline
Log In to Comment