From 4bd32005b56f6ec741ceeed0a1745fe89f291085 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Mon, 2 Jun 2014 07:55:46 +0000 Subject: feature 3010 : replace trigger_action/event by trigger_notify/change git-svn-id: http://piwigo.org/svn/trunk@28587 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/ws_core.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/ws_core.inc.php') diff --git a/include/ws_core.inc.php b/include/ws_core.inc.php index a8c1b7f76..e46953287 100644 --- a/include/ws_core.inc.php +++ b/include/ws_core.inc.php @@ -291,7 +291,7 @@ Request format: ".@$this->_requestFormat." Response format: ".@$this->_responseF array('methodName') ); - trigger_action('ws_add_methods', array(&$this) ); + trigger_notify('ws_add_methods', array(&$this) ); uksort( $this->_methods, 'strnatcmp' ); $this->_requestHandler->handleRequest($this); } @@ -306,7 +306,7 @@ Request format: ".@$this->_requestFormat." Response format: ".@$this->_responseF @header('Content-Type: '.$contentType.'; charset='.get_pwg_charset()); print_r($encodedResponse); - trigger_action('sendResponse', $encodedResponse ); + trigger_notify('sendResponse', $encodedResponse ); } /** @@ -598,7 +598,7 @@ Request format: ".@$this->_requestFormat." Response format: ".@$this->_responseF return new PwgError(WS_ERR_MISSING_PARAM, 'Missing parameters: '.implode(',',$missing_params)); } - $result = trigger_event('ws_invoke_allowed', true, $methodName, $params); + $result = trigger_change('ws_invoke_allowed', true, $methodName, $params); if ( strtolower( @get_class($result) )!='pwgerror') { if ( !empty($method['include']) ) -- cgit v1.2.3