From 57dd0ffcb65ed472540492a0a03409e375dec298 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 4 Sep 2008 21:37:19 +0000 Subject: bug fixed : call set_status_header for HTTP response when webservice PwgError is called, so that http response code and related message are part of the structure response and not only in a serialized content (see how tools/piwigo_remote.pl gets the response) git-svn-id: http://piwigo.org/svn/trunk@2499 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/ws_core.inc.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/ws_core.inc.php') diff --git a/include/ws_core.inc.php b/include/ws_core.inc.php index 71a10b06d..0580d12d7 100644 --- a/include/ws_core.inc.php +++ b/include/ws_core.inc.php @@ -52,6 +52,8 @@ class PwgError function PwgError($code, $codeText) { + set_status_header($code, $codeText); + $this->_code = $code; $this->_codeText = $codeText; } -- cgit v1.2.3