Merge "Defer addAutopromoteOnceGroups to transaction idle"
This commit is contained in:
commit
12632fddfc
1 changed files with 3 additions and 1 deletions
|
|
@ -2047,7 +2047,9 @@ class WikiPage implements Page, IDBAccessObject {
|
||||||
wfRunHooks( 'PageContentSaveComplete', $hook_args );
|
wfRunHooks( 'PageContentSaveComplete', $hook_args );
|
||||||
|
|
||||||
// Promote user to any groups they meet the criteria for
|
// Promote user to any groups they meet the criteria for
|
||||||
$user->addAutopromoteOnceGroups( 'onEdit' );
|
$dbw->onTransactionIdle( function() use ( $user ) {
|
||||||
|
$user->addAutopromoteOnceGroups( 'onEdit' );
|
||||||
|
} );
|
||||||
|
|
||||||
wfProfileOut( __METHOD__ );
|
wfProfileOut( __METHOD__ );
|
||||||
return $status;
|
return $status;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue