From: Tim Starling Date: Wed, 4 Jun 2008 01:47:30 +0000 (+0000) Subject: Special-case debugging hack X-Git-Tag: 1.31.0-rc.0~47185 X-Git-Url: http://git.cyclocoop.org/data/%7BGarradin/WEBSITE%7D?a=commitdiff_plain;h=075f83b4b3e02c2f1534ef41756e5717f07c357b;p=lhc%2Fweb%2Fwiklou.git Special-case debugging hack --- diff --git a/maintenance/getSlaveServer.php b/maintenance/getSlaveServer.php index d148557bf2..97104e08a3 100644 --- a/maintenance/getSlaveServer.php +++ b/maintenance/getSlaveServer.php @@ -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();