dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: Upgrade mediawiki-codesniffer from 26.0.0 to 28.0.0
[lhc/web/wiklou.git]
/
maintenance
/
purgeOldText.php
diff --git
a/maintenance/purgeOldText.php
b/maintenance/purgeOldText.php
index
e68047c
..
65d25c9
100644
(file)
--- a/
maintenance/purgeOldText.php
+++ b/
maintenance/purgeOldText.php
@@
-22,7
+22,7
@@
* @author Rob Church <robchur@gmail.com>
*/
* @author Rob Church <robchur@gmail.com>
*/
-require_once
( dirname( __FILE__ ) . '/Maintenance.php' )
;
+require_once
__DIR__ . '/Maintenance.php'
;
/**
* Maintenance script that purges old text records from the database.
/**
* Maintenance script that purges old text records from the database.
@@
-32,7
+32,7
@@
require_once( dirname( __FILE__ ) . '/Maintenance.php' );
class PurgeOldText extends Maintenance {
public function __construct() {
parent::__construct();
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' );
}
$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
;