From 68df48c93a4e3eef2ba50918e79b5cfb90128d9b Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 15 Apr 2008 15:38:08 +0000 Subject: [PATCH] Autoreview null edits too (bug 13733) --- docs/hooks.txt | 3 +++ includes/Revision.php | 3 +++ 2 files changed, 6 insertions(+) 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; } -- 2.20.1