r9675 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r9674‎ | r9675 | r9676 >
Date:07:02, 26 June 2005
Author:vibber
Status:old
Tags:
Comment:
Fix ordering / use of user/admin users
Modified paths:
  • /trunk/phase3/maintenance/commandLine.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/commandLine.inc
@@ -118,11 +118,6 @@
119119 $wgUseNormalUser = true;
120120 }
121121
122 - if ( !$wgUseNormalUser ) {
123 - $wgDBuser = $wgDBadminuser = "wikiadmin";
124 - $wgDBpassword = $wgDBadminpassword = trim(`wikiadmin_pass`);
125 - }
126 -
127122 putenv( "wikilang=$lang");
128123
129124 $DP = $IP;
@@ -130,6 +125,11 @@
131126
132127 require_once( "$IP/includes/Defines.php" );
133128 require_once( "$IP/CommonSettings.php" );
 129+
 130+ if ( !$wgUseNormalUser ) {
 131+ $wgDBuser = $wgDBadminuser = "wikiadmin";
 132+ $wgDBpassword = $wgDBadminpassword = trim(`wikiadmin_pass`);
 133+ }
134134 } else {
135135 $wgWikiFarm = false;
136136 $settingsFile = "$IP/LocalSettings.php";
@@ -155,7 +155,7 @@
156156 # Same with these
157157 $wgCommandLineMode = true;
158158
159 -if ( !empty( $wgUseNormalUser ) && isset( $wgDBadminuser ) ) {
 159+if ( empty( $wgUseNormalUser ) && isset( $wgDBadminuser ) ) {
160160 $wgDBuser = $wgDBadminuser;
161161 $wgDBpassword = $wgDBadminpassword;
162162

Status & tagging log