Autoreview null edits too (bug 13733)
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 15 Apr 2008 15:38:08 +0000 (15:38 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 15 Apr 2008 15:38:08 +0000 (15:38 +0000)
docs/hooks.txt
includes/Revision.php

index ca5dc16..f6a9edc 100644 (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
index 3eaf50b..9e473c2 100644 (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;
        }