X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=maintenance%2FpurgeOldText.php;h=65d25c9886f2d3ac50f91a61793a8bce00e3ec1e;hb=7a2b60316128aa2beb8d7f441bfc8bd078f71097;hp=3d81e2dfafcb6f8935d7ca46cb71a16e097919bc;hpb=71c0d39d12f140eb49757c991e063daec34b000f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/purgeOldText.php b/maintenance/purgeOldText.php index 3d81e2dfaf..65d25c9886 100644 --- a/maintenance/purgeOldText.php +++ b/maintenance/purgeOldText.php @@ -32,7 +32,7 @@ require_once __DIR__ . '/Maintenance.php'; 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' ); } @@ -41,5 +41,5 @@ class PurgeOldText extends Maintenance { } } -$maintClass = "PurgeOldText"; +$maintClass = PurgeOldText::class; require_once RUN_MAINTENANCE_IF_MAIN;