Commit graph

9 commits

Author SHA1 Message Date
Ævar Arnfjörð Bjarmason
a8a4a713cb * Making null the default $args so that hooks without arguments can be created 2005-08-26 13:50:19 +00:00
Tim Starling
3c6a5d9616 profiling 2005-08-21 07:27:29 +00:00
Ævar Arnfjörð Bjarmason
70cbc5244f * Fixed @author line to a conformant phpdoc element 2005-05-23 14:17:29 +00:00
Ævar Arnfjörð Bjarmason
76bb2dbc40 * Some clown with CVS access deleted our MS Word files and replaced them with
textfiles, changing all references to them.
2005-04-12 02:07:16 +00:00
Erik Moeller
3602e2f212 remove tabs at bottom, add newline 2005-03-15 01:12:52 +00:00
Evan Prodromou
d63d4248a6 Changed the calling protocol for function wfRunHooks() in Hooks.php.
Previously, this function used variable arguments to allow
different hooks to pass different parameters. However, var args
silently convert reference-calling to value-calling. So a call
that used to work like this:

    # old
    wfRunHooks('SomeEvent', $param1, &$param2, $param3);

...now works like this:

    # new
    wfRunHooks('SomeEvent', array($param1, &$param2, $param3));

Hook functions can now change pass-by-reference parameters correctly
(e.g. $param2 in the above example).

All calls to wfRunHooks() were changed and tested, and the change
was documented in docs/hooks.doc. This change was originally checked
in on REL1_4 branch as a bugfix, but per vibber reverted and checked
in to HEAD instead.
2005-03-13 15:29:43 +00:00
Antoine Musso
2104f62734 fix phpdoc comment 2005-01-27 19:51:47 +00:00
Evan Prodromou
7a57bb56af Add an extension for logging MediaWiki events to the system logger
(syslog). Although intended to be useful, it's more of a testbed for
event hooks than anything else. For a first pass, started logging user
login and user logout events. Had to add hooks-running code to the
login and logout modules, but that's kind of the point. Documented the
three events added in hooks.doc.
2004-11-27 23:10:05 +00:00
Evan Prodromou
80d9f05b37 Add a system of hooks to allow third-party code to run before, after, or
instead of -- MediaWiki code for particular events (article rollback,
user ban, etc.). Framework is in place; hooks are not yet in place
in the mainline code.
2004-11-27 21:43:06 +00:00