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
Bump development Monolog version
[lhc/web/wiklou.git]
/
includes
/
MovePage.php
diff --git
a/includes/MovePage.php
b/includes/MovePage.php
index
2cd9698
..
736cd8d
100644
(file)
--- a/
includes/MovePage.php
+++ b/
includes/MovePage.php
@@
-247,7
+247,7
@@
class MovePage {
RepoGroup::singleton()->clearCache( $this->newTitle ); # clear false negative cache
}
RepoGroup::singleton()->clearCache( $this->newTitle ); # clear false negative cache
}
- $dbw->
begin( __METHOD__ ); # If $file was a LocalFile, its transaction would have closed our own.
+ $dbw->
startAtomic( __METHOD__ );
$pageid = $this->oldTitle->getArticleID( Title::GAID_FOR_UPDATE );
$protected = $this->oldTitle->isProtected();
$pageid = $this->oldTitle->getArticleID( Title::GAID_FOR_UPDATE );
$protected = $this->oldTitle->isProtected();
@@
-369,12
+369,13
@@
class MovePage {
WatchedItem::duplicateEntries( $this->oldTitle, $this->newTitle );
}
WatchedItem::duplicateEntries( $this->oldTitle, $this->newTitle );
}
- $dbw->commit( __METHOD__ );
+ $dbw->endAtomic( __METHOD__ );
+
+ $params = array( &$this->oldTitle, &$this->newTitle, &$user, $pageid, $redirid, $reason );
+ $dbw->onTransactionIdle( function () use ( $params ) {
+ Hooks::run( 'TitleMoveComplete', $params );
+ } );
- Hooks::run(
- 'TitleMoveComplete',
- array( &$this->oldTitle, &$this->newTitle, &$user, $pageid, $redirid, $reason )
- );
return Status::newGood();
}
return Status::newGood();
}