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
Merge "Fix some FileOpBatch IDEA errors"
[lhc/web/wiklou.git]
/
maintenance
/
deleteOldRevisions.php
diff --git
a/maintenance/deleteOldRevisions.php
b/maintenance/deleteOldRevisions.php
index
4f82a63
..
0c06ec5
100644
(file)
--- a/
maintenance/deleteOldRevisions.php
+++ b/
maintenance/deleteOldRevisions.php
@@
-22,7
+22,7
@@
* @author Rob Church <robchur@gmail.com>
*/
* @author Rob Church <robchur@gmail.com>
*/
-require_once
( __DIR__ . '/Maintenance.php' )
;
+require_once
__DIR__ . '/Maintenance.php'
;
/**
* Maintenance script that deletes old (non-current) revisions from the database.
/**
* Maintenance script that deletes old (non-current) revisions from the database.
@@
-46,7
+46,7
@@
class DeleteOldRevisions extends Maintenance {
# Data should come off the master, wrapped in a transaction
$dbw = wfGetDB( DB_MASTER );
# Data should come off the master, wrapped in a transaction
$dbw = wfGetDB( DB_MASTER );
- $
dbw->begin(
__METHOD__ );
+ $
this->beginTransaction( $dbw,
__METHOD__ );
$pageConds = array();
$revConds = array();
$pageConds = array();
$revConds = array();
@@
-92,7
+92,7
@@
class DeleteOldRevisions extends Maintenance {
# This bit's done
# Purge redundant text records
# This bit's done
# Purge redundant text records
- $
dbw->commit(
__METHOD__ );
+ $
this->commitTransaction( $dbw,
__METHOD__ );
if ( $delete ) {
$this->purgeRedundantText( true );
}
if ( $delete ) {
$this->purgeRedundantText( true );
}
@@
-100,5
+100,4
@@
class DeleteOldRevisions extends Maintenance {
}
$maintClass = "DeleteOldRevisions";
}
$maintClass = "DeleteOldRevisions";
-require_once( RUN_MAINTENANCE_IF_MAIN );
-
+require_once RUN_MAINTENANCE_IF_MAIN;