Bryan Tong Minh wrote:
Indeed. I first tried something along those lines, but
I got a stuck
because the hooks may change the function to be called
That is fine. Just pass $this->mFunction directly to the hook, there is
no need to make a $func copy as it is now.
and because I
was not sure whether the require_once in execute() would result the
wfSpecialFunction to be in local or global variable scope.
Functions declared inside other functions (or methods) in PHP are
global, so it is ok.
See the patch attached, I just tested and it works.
--
Juliano F. Ravasi ยทยท
http://juliano.info/
5105 46CC B2B7 F0CD 5F47 E740 72CA 54F4 DF37 9E96
"A candle loses nothing by lighting another candle." -- Erin Majors
* NOTE: Don't try to reach me through this address, use "contact@" instead.