Autoreview null edits too (bug 13733)
This commit is contained in:
parent
4af415d4ec
commit
68df48c93a
2 changed files with 6 additions and 0 deletions
|
|
@ -916,6 +916,9 @@ $out: output page to render to, probably $wgOut
|
|||
$form: the PreferencesForm
|
||||
$user: the User object to load preferences from
|
||||
|
||||
'RevisionInsertComplete': called after a revision is inserted into the DB
|
||||
$revision: the Revision
|
||||
|
||||
'SavePreferences': called at the end of PreferencesForm::savePreferences;
|
||||
returning false prevents the preferences from being saved.
|
||||
$form: the PreferencesForm
|
||||
|
|
|
|||
|
|
@ -750,6 +750,9 @@ class Revision {
|
|||
);
|
||||
|
||||
$this->mId = !is_null($rev_id) ? $rev_id : $dbw->insertId();
|
||||
|
||||
wfRunHooks( 'RevisionInsertComplete', array( &$this ) );
|
||||
|
||||
wfProfileOut( __METHOD__ );
|
||||
return $this->mId;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue