* @author Rob Church <robchur@gmail.com>
*/
-require_once( __DIR__ . '/Maintenance.php' );
+require_once __DIR__ . '/Maintenance.php';
/**
* Maintenance script that purges old text records from the database.
class PurgeOldText extends Maintenance {
public function __construct() {
parent::__construct();
- $this->mDescription = "Purge old text records from the database";
+ $this->addDescription( 'Purge old text records from the database' );
$this->addOption( 'purge', 'Performs the deletion' );
}
}
$maintClass = "PurgeOldText";
-require_once( RUN_MAINTENANCE_IF_MAIN );
+require_once RUN_MAINTENANCE_IF_MAIN;