Index: trunk/phase3/maintenance/populateSha1.php |
— | — | @@ -55,10 +55,11 @@ |
56 | 56 | $oldimageTable = $dbw->tableName( 'oldimage' ); |
57 | 57 | $batch = array(); |
58 | 58 | |
59 | | - $cmd = 'mysql -u' . wfEscapeShellArg( $wgDBuser ) . |
60 | | - ' -h' . wfEscapeShellArg( $wgDBserver ) . |
61 | | - ' -p' . wfEscapeShellArg( $wgDBpassword, $wgDBname ); |
62 | 59 | if ( $method == 'pipe' ) { |
| 60 | + global $wgDBuser, $wgDBserver, $wgDBpassword, $wgDBname; |
| 61 | + $cmd = 'mysql -u' . wfEscapeShellArg( $wgDBuser ) . |
| 62 | + ' -h' . wfEscapeShellArg( $wgDBserver ) . |
| 63 | + ' -p' . wfEscapeShellArg( $wgDBpassword, $wgDBname ); |
63 | 64 | $this->output( "Using pipe method\n" ); |
64 | 65 | $pipe = popen( $cmd, 'w' ); |
65 | 66 | } |