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 "Convert mwdoc-filter.php to Maintenance class so --wiki works"
[lhc/web/wiklou.git]
/
maintenance
/
orphans.php
diff --git
a/maintenance/orphans.php
b/maintenance/orphans.php
index
e4f3e91
..
e36c5b6
100644
(file)
--- a/
maintenance/orphans.php
+++ b/
maintenance/orphans.php
@@
-30,6
+30,8
@@
require_once __DIR__ . '/Maintenance.php';
require_once __DIR__ . '/Maintenance.php';
+use Wikimedia\Rdbms\IMaintainableDatabase;
+
/**
* Maintenance script that looks for 'orphan' revisions hooked to pages which
* don't exist and 'childless' pages with no revisions.
/**
* Maintenance script that looks for 'orphan' revisions hooked to pages which
* don't exist and 'childless' pages with no revisions.
@@
-56,8
+58,8
@@
class Orphans extends Maintenance {
/**
* Lock the appropriate tables for the script
/**
* Lock the appropriate tables for the script
- * @param Database $db
- * @param string $extraTable The name of any extra tables to lock (eg: text)
+ * @param
IMaintainable
Database $db
+ * @param string
[]
$extraTable The name of any extra tables to lock (eg: text)
*/
private function lockTables( $db, $extraTable = [] ) {
$tbls = [ 'page', 'revision', 'redirect' ];
*/
private function lockTables( $db, $extraTable = [] ) {
$tbls = [ 'page', 'revision', 'redirect' ];