X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FpurgeOldText.php;h=65d25c9886f2d3ac50f91a61793a8bce00e3ec1e;hp=3d81e2dfafcb6f8935d7ca46cb71a16e097919bc;hb=5490b1270a0a7447f28d2407736fc3c1deb41d44;hpb=a492cf4c3498edbea090c5eccc2515b4d4a1724b 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;