require_once __DIR__ . '/Maintenance.php';
/**
- * Mainteance script to populate the category table.
+ * Maintenance script to populate the category table.
*
* @ingroup Maintenance
*/
$throttle = $this->getOption( 'throttle', 0 );
$force = $this->getOption( 'force', false );
- $dbw = wfGetDB( DB_MASTER );
+ $dbw = $this->getDB( DB_MASTER );
if ( !$force ) {
$row = $dbw->selectRow(