X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/mediawiki.git/blobdiff_plain/19e297c21b10b1b8a3acad5e73fc71dcb35db44a..6932310fd58ebef145fa01eb76edf7150284d8ea:/maintenance/purgeOldText.php diff --git a/maintenance/purgeOldText.php b/maintenance/purgeOldText.php index 0cbc724e..1b78c7d9 100644 --- a/maintenance/purgeOldText.php +++ b/maintenance/purgeOldText.php @@ -17,16 +17,22 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * + * @file * @ingroup Maintenance * @author Rob Church */ -require_once( dirname( __FILE__ ) . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; +/** + * Maintenance script that purges old text records from the database. + * + * @ingroup Maintenance + */ 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' ); } @@ -36,4 +42,4 @@ class PurgeOldText extends Maintenance { } $maintClass = "PurgeOldText"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;