$wgAllDBsAreLocalhost was removed 3 years ago, in I54b23654. This
maintenance script kept working because it just saw null for the
variable.
But then Id67d0759 changed the code to access it via Config, which does
checking for accessing of nonexistent config vars and so broke things.
Bug: T232268
Change-Id: I4fc39cccfd9041c76f734a1a85c2b34fc84218f0
}
public function execute() {
- if ( $this->getConfig()->get( 'AllDBsAreLocalhost' ) ) {
- $host = 'localhost';
- } elseif ( $this->hasOption( 'group' ) ) {
+ if ( $this->hasOption( 'group' ) ) {
$db = $this->getDB( DB_REPLICA, $this->getOption( 'group' ) );
$host = $db->getServer();
} else {