summaryrefslogtreecommitdiff
path: root/maintenance/purgeOldText.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2011-06-22 11:28:20 +0200
committerPierre Schmitz <pierre@archlinux.de>2011-06-22 11:28:20 +0200
commit9db190c7e736ec8d063187d4241b59feaf7dc2d1 (patch)
tree46d1a0dee7febef5c2d57a9f7b972be16a163b3d /maintenance/purgeOldText.php
parent78677c7bbdcc9739f6c10c75935898a20e1acd9e (diff)
update to MediaWiki 1.17.0
Diffstat (limited to 'maintenance/purgeOldText.php')
-rw-r--r--maintenance/purgeOldText.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/maintenance/purgeOldText.php b/maintenance/purgeOldText.php
index 9621cb39..0cbc724e 100644
--- a/maintenance/purgeOldText.php
+++ b/maintenance/purgeOldText.php
@@ -21,7 +21,7 @@
* @author Rob Church <robchur@gmail.com>
*/
-require_once( dirname(__FILE__) . '/Maintenance.php' );
+require_once( dirname( __FILE__ ) . '/Maintenance.php' );
class PurgeOldText extends Maintenance {
public function __construct() {
@@ -29,11 +29,11 @@ class PurgeOldText extends Maintenance {
$this->mDescription = "Purge old text records from the database";
$this->addOption( 'purge', 'Performs the deletion' );
}
-
+
public function execute() {
- $this->purgeRedundantText( $this->hasOption('purge') );
+ $this->purgeRedundantText( $this->hasOption( 'purge' ) );
}
}
$maintClass = "PurgeOldText";
-require_once( DO_MAINTENANCE );
+require_once( RUN_MAINTENANCE_IF_MAIN );