SECURITY: Don't allow loading unprotected JS files
[lhc/web/wiklou.git] / maintenance / showSiteStats.php
index 205dfdd..08f009b 100644 (file)
@@ -53,7 +53,7 @@ class ShowSiteStats extends Maintenance {
                ];
 
                // Get cached stats from a replica DB
-               $dbr = $this->getDB( DB_SLAVE );
+               $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;