From 2f70d58b2243454085035177e4a6ab777a3bf55c Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 29 Jan 2007 20:38:08 +0000 Subject: web services: give vincent the calling partner id git-svn-id: http://piwigo.org/svn/trunk@1768 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/ws_core.inc.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/ws_core.inc.php') diff --git a/include/ws_core.inc.php b/include/ws_core.inc.php index 61c94b295..77f79388c 100644 --- a/include/ws_core.inc.php +++ b/include/ws_core.inc.php @@ -563,8 +563,11 @@ Response format: ".@$this->_responseFormat." encoder:".$this->_responseEncoder." { return new PwgError(WS_ERR_MISSING_PARAM, 'Missing parameters: '.implode(',',$missing_params)); } - - $result = call_user_func_array($callback, array($params, &$this) ); + $result = trigger_event('ws_invoke_allowed', true, $methodName, $params); + if ( strtolower( get_class($result) )!='pwgerror') + { + $result = call_user_func_array($callback, array($params, &$this) ); + } return $result; } -- cgit v1.2.3