dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
832ee70
)
Update docs to caution against use of create_function(). Per bug 15476.
author
Chad Horohoe
<demon@users.mediawiki.org>
Fri, 12 Sep 2008 02:45:36 +0000
(
02:45
+0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Fri, 12 Sep 2008 02:45:36 +0000
(
02:45
+0000)
docs/hooks.txt
patch
|
blob
|
history
diff --git
a/docs/hooks.txt
b/docs/hooks.txt
index
9e9dbf9
..
440b251
100644
(file)
--- a/
docs/hooks.txt
+++ b/
docs/hooks.txt
@@
-198,6
+198,10
@@
system (LDAP, another PHP program, whatever), you could do:
Returning false makes less sense for events where the action is complete, and
will normally be ignored.
+Note that none of the examples made use of create_function() as a way to
+attach a function to a hook. This is known to cause problems (notably with
+Special:Version), and should be avoided when at all possible.
+
==Using hooks==
A calling function or method uses the wfRunHooks() function to run the hooks