* @author Brion Vibber
* @author Rob Church <robchur@gmail.com>
*
- * @license GNU General Public License 2.0 or later
+ * @license GPL-2.0-or-later
*/
require_once __DIR__ . '/Maintenance.php';
];
// 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
}
}
-$maintClass = "ShowSiteStats";
+$maintClass = ShowSiteStats::class;
require_once RUN_MAINTENANCE_IF_MAIN;