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 "Perform a permission check on the title when changing the page language"
[lhc/web/wiklou.git]
/
maintenance
/
deleteOrphanedRevisions.php
diff --git
a/maintenance/deleteOrphanedRevisions.php
b/maintenance/deleteOrphanedRevisions.php
index
df496d4
..
e99f2b0
100644
(file)
--- a/
maintenance/deleteOrphanedRevisions.php
+++ b/
maintenance/deleteOrphanedRevisions.php
@@
-26,6
+26,8
@@
require_once __DIR__ . '/Maintenance.php';
require_once __DIR__ . '/Maintenance.php';
+use Wikimedia\Rdbms\IDatabase;
+
/**
* Maintenance script that deletes revisions which refer to a nonexisting page.
*
/**
* Maintenance script that deletes revisions which refer to a nonexisting page.
*
@@
-83,7
+85,7
@@
class DeleteOrphanedRevisions extends Maintenance {
* Do this inside a transaction
*
* @param array $id Array of revision id values
* Do this inside a transaction
*
* @param array $id Array of revision id values
- * @param
Database $dbw Database class (needs to be a master)
+ * @param
IDatabase $dbw Master DB handle
*/
private function deleteRevs( $id, &$dbw ) {
if ( !is_array( $id ) ) {
*/
private function deleteRevs( $id, &$dbw ) {
if ( !is_array( $id ) ) {