Index: trunk/phase3/maintenance/getSlaveServer.php |
— | — | @@ -6,6 +6,12 @@ |
7 | 7 | |
8 | 8 | require_once( dirname(__FILE__).'/commandLine.inc' ); |
9 | 9 | |
| 10 | +if ( $wgAllDBsAreLocalhost ) { |
| 11 | + # Can't fool the backup script |
| 12 | + print "localhost\n"; |
| 13 | + exit; |
| 14 | +} |
| 15 | + |
10 | 16 | if( isset( $options['group'] ) ) { |
11 | 17 | $db = wfGetDB( DB_SLAVE, $options['group'] ); |
12 | 18 | $host = $db->getServer(); |