X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=blobdiff_plain;f=maintenance%2FpurgeOldText.php;h=1b78c7d9d7a460644c9ca61d7459bc8e6d2dbdf0;hb=425ee18e3b7d874d56d7644e4683171796aae024;hp=1f0b063b6ba22b4b2f2fcf2e075cb437a1e904d2;hpb=a1a296ac845aa37bfb34f0ca0085de67f9b2e8c4;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/purgeOldText.php b/maintenance/purgeOldText.php index 1f0b063b6b..1b78c7d9d7 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' ); } @@ -42,4 +42,4 @@ class PurgeOldText extends Maintenance { } $maintClass = "PurgeOldText"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;