X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FtidyUpBug37714.php;h=9d7cc0e9c3603e54ccad7e7990aeb9b9ca73ead5;hb=ffba23d177d5eee876bdc59cdf1b945281b18041;hp=f47e13c06d41007ea79ec4040006dc7f9cd1ba5e;hpb=c339459eb3ee100c0abda4ebf7e4266f7b3d58bd;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/tidyUpBug37714.php b/maintenance/tidyUpBug37714.php index f47e13c06d..9d7cc0e9c3 100644 --- a/maintenance/tidyUpBug37714.php +++ b/maintenance/tidyUpBug37714.php @@ -7,7 +7,7 @@ require_once __DIR__ . '/Maintenance.php'; class TidyUpBug37714 extends Maintenance { public function execute() { // Search for all log entries which are about changing the visability of other log entries. - $result = $this->getDB( DB_SLAVE )->select( + $result = $this->getDB( DB_REPLICA )->select( 'logging', [ 'log_id', 'log_params' ], [ @@ -21,7 +21,7 @@ class TidyUpBug37714 extends Maintenance { foreach ( $result as $row ) { $ids = explode( ',', explode( "\n", $row->log_params )[0] ); - $result = $this->getDB( DB_SLAVE )->select( // Work out what log entries were changed here. + $result = $this->getDB( DB_REPLICA )->select( // Work out what log entries were changed here. 'logging', 'log_type', [ 'log_id' => $ids ],