X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FshowSiteStats.php;h=08f009bd888e21e54fc20338fe8dfe66c893c77b;hb=f9d10f9e0321151914159773edca3b8eb17dfa54;hp=1d3e43a1e9310db71388a42ec52cc89baa5ec7d2;hpb=fb7b3eebeb8de47eb42e8d6ccf204106a2d6d9e4;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/showSiteStats.php b/maintenance/showSiteStats.php index 1d3e43a1e9..08f009bd88 100644 --- a/maintenance/showSiteStats.php +++ b/maintenance/showSiteStats.php @@ -52,8 +52,8 @@ class ShowSiteStats extends Maintenance { 'ss_images' => 'Number of images', ]; - // Get cached stats from slave database - $dbr = $this->getDB( DB_SLAVE ); + // Get cached stats from a replica DB + $dbr = $this->getDB( DB_REPLICA ); $stats = $dbr->selectRow( 'site_stats', '*', '', __METHOD__ ); // Get maximum size for each column @@ -74,5 +74,5 @@ class ShowSiteStats extends Maintenance { } } -$maintClass = "ShowSiteStats"; +$maintClass = ShowSiteStats::class; require_once RUN_MAINTENANCE_IF_MAIN;