Autoreview null edits too (bug 13733)

This commit is contained in:
Aaron Schulz 2008-04-15 15:38:08 +00:00
parent 4af415d4ec
commit 68df48c93a
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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;
}