diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-09-14 18:33:16 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-09-14 18:33:16 +0000 |
commit | 9fbab016f937ce4c6e2d93e34b046f80c675fae6 (patch) | |
tree | cfb4de6b4a86ee61c6c783d82df99eedc85b7842 /xmlrpc.php | |
parent | df3afcbc449773f4768e5dc4b05e7fb2c1197283 (diff) | |
download | brdo-9fbab016f937ce4c6e2d93e34b046f80c675fae6.tar.gz brdo-9fbab016f937ce4c6e2d93e34b046f80c675fae6.tar.bz2 |
- Tidied up the usage of module_invoke() and module_invoke_all(). Patch by
Jonathan Chaffer.
Diffstat (limited to 'xmlrpc.php')
-rw-r--r-- | xmlrpc.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/xmlrpc.php b/xmlrpc.php index e1eda8807..41538a98b 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -4,13 +4,7 @@ include_once "includes/xmlrpcs.inc"; include_once "includes/common.inc"; -$functions = array(); - -foreach (module_list() as $name) { - if (module_hook($name, "xmlrpc")) { - $functions = array_merge($functions, module_invoke($name, "xmlrpc")); - } -} +$functions = module_invoke_all("xmlrpc"); $server = new xmlrpc_server($functions); |