From: Aaron Schulz Date: Tue, 15 Apr 2008 15:38:08 +0000 (+0000) Subject: Autoreview null edits too (bug 13733) X-Git-Tag: 1.31.0-rc.0~48306 X-Git-Url: http://git.cyclocoop.org//%22%22.str_replace%28%27%22%27%2C?a=commitdiff_plain;h=68df48c93a4e3eef2ba50918e79b5cfb90128d9b;p=lhc%2Fweb%2Fwiklou.git Autoreview null edits too (bug 13733) --- diff --git a/docs/hooks.txt b/docs/hooks.txt index ca5dc16a58..f6a9edc9ca 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -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 diff --git a/includes/Revision.php b/includes/Revision.php index 3eaf50b6f5..9e473c2c87 100644 --- a/includes/Revision.php +++ b/includes/Revision.php @@ -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; }