Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1011,7 +1011,13 @@ |
1012 | 1012 | $user: the User object to load preferences from |
1013 | 1013 | |
1014 | 1014 | 'RevisionInsertComplete': called after a revision is inserted into the DB |
1015 | | -$revision: the Revision |
| 1015 | +&$revision: the Revision |
| 1016 | +$data: the data stored in old_text. The meaning depends on $flags: if external |
| 1017 | + is set, it's the URL of the revision text in external storage; otherwise, |
| 1018 | + it's the revision text itself. In either case, if gzip is set, the revision |
| 1019 | + text is gzipped. |
| 1020 | +$flags: a comma-delimited list of strings representing the options used. May |
| 1021 | + include: utf8 (this will always be set for new revisions); gzip; external. |
1016 | 1022 | |
1017 | 1023 | 'SavePreferences': called at the end of PreferencesForm::savePreferences; |
1018 | 1024 | returning false prevents the preferences from being saved. |
Index: trunk/phase3/includes/Revision.php |
— | — | @@ -773,7 +773,7 @@ |
774 | 774 | |
775 | 775 | $this->mId = !is_null($rev_id) ? $rev_id : $dbw->insertId(); |
776 | 776 | |
777 | | - wfRunHooks( 'RevisionInsertComplete', array( &$this, &$data, &$flags ) ); |
| 777 | + wfRunHooks( 'RevisionInsertComplete', array( &$this, $data, $flags ) ); |
778 | 778 | |
779 | 779 | wfProfileOut( __METHOD__ ); |
780 | 780 | return $this->mId; |