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 "Replace $wiki with $domain in ILoadBalancer"
[lhc/web/wiklou.git]
/
maintenance
/
namespaceDupes.php
diff --git
a/maintenance/namespaceDupes.php
b/maintenance/namespaceDupes.php
index
55f361c
..
506bc9c
100644
(file)
--- a/
maintenance/namespaceDupes.php
+++ b/
maintenance/namespaceDupes.php
@@
-24,6
+24,8
@@
* @ingroup Maintenance
*/
* @ingroup Maintenance
*/
+use MediaWiki\Linker\LinkTarget;
+
require_once __DIR__ . '/Maintenance.php';
/**
require_once __DIR__ . '/Maintenance.php';
/**
@@
-594,6
+596,8
@@
class NamespaceConflictChecker extends Maintenance {
$this->db->delete( 'page', [ 'page_id' => $id ], __METHOD__ );
$this->db->delete( 'page', [ 'page_id' => $id ], __METHOD__ );
+ $this->commitTransaction( $this->db, __METHOD__ );
+
/* Call LinksDeletionUpdate to delete outgoing links from the old title,
* and update category counts.
*
/* Call LinksDeletionUpdate to delete outgoing links from the old title,
* and update category counts.
*
@@
-603,9
+607,8
@@
class NamespaceConflictChecker extends Maintenance {
* accidentally introduce an assumption of title validity to the code we
* are calling.
*/
* accidentally introduce an assumption of title validity to the code we
* are calling.
*/
- $update = new LinksDeletionUpdate( $wikiPage );
- $update->doUpdate();
- $this->commitTransaction( $this->db, __METHOD__ );
+ DeferredUpdates::addUpdate( new LinksDeletionUpdate( $wikiPage ) );
+ DeferredUpdates::doUpdates();
return true;
}
return true;
}