Special-case debugging hack
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 4 Jun 2008 01:47:30 +0000 (01:47 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 4 Jun 2008 01:47:30 +0000 (01:47 +0000)
maintenance/getSlaveServer.php

index d148557..97104e0 100644 (file)
@@ -6,6 +6,12 @@
 
 require_once( dirname(__FILE__).'/commandLine.inc' );
 
+if ( $wgAllDBsAreLocalhost ) {
+       # Can't fool the backup script
+       print "localhost\n";
+       exit;
+}
+
 if( isset( $options['group'] ) ) {
        $db = wfGetDB( DB_SLAVE, $options['group'] );
        $host = $db->getServer();