Fixes for r37489:
authorAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 10 Jul 2008 18:04:32 +0000 (18:04 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 10 Jul 2008 18:04:32 +0000 (18:04 +0000)
commit680007475ffc5055236d85e5187b6f7b480c654f
tree233b198877095de94c70af02b386fbdd7b57731e
parentbb3faf9d9b5039cfa30dd03250e0cd9be88dc008
Fixes for r37489:
* Don't pass $data or $flags by reference.  They're never accessed again, so it makes no sense.
* Document in hooks.txt.
The interface for this hook seems very messy.  It seems like it would be much cleaner to expose $data as $url (null if stored locally); and $flags as an array, or something like that.  If the text is gzipped, the text can be extracted from the Revision and re-gzipped if you really want to for some strange reason.
docs/hooks.txt
includes/Revision.php