class ShowSiteStats extends Maintenance {
public function __construct() {
parent::__construct();
- $this->mDescription = "Show the cached statistics";
+ $this->addDescription( 'Show the cached statistics' );
}
public function execute() {
);
// Get cached stats from slave database
- $dbr = wfGetDB( DB_SLAVE );
+ $dbr = $this->getDB( DB_SLAVE );
$stats = $dbr->selectRow( 'site_stats', '*', '', __METHOD__ );
// Get maximum size for each column