X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FpurgeOldText.php;h=65d25c9886f2d3ac50f91a61793a8bce00e3ec1e;hb=e65f8ac5110804067366f9f239c13f4f29b66c3d;hp=1f0b063b6ba22b4b2f2fcf2e075cb437a1e904d2;hpb=944e196c02efbe6838827d4cf1e332a7919e5cdb;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/purgeOldText.php b/maintenance/purgeOldText.php index 1f0b063b6b..65d25c9886 100644 --- a/maintenance/purgeOldText.php +++ b/maintenance/purgeOldText.php @@ -22,7 +22,7 @@ * @author Rob Church */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script that purges old text records from the database. @@ -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"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +$maintClass = PurgeOldText::class; +require_once RUN_MAINTENANCE_IF_MAIN;