aboutsummaryrefslogtreecommitdiffstats
path: root/include/ws_core.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2008-09-04 21:37:19 +0000
committerplegall <plg@piwigo.org>2008-09-04 21:37:19 +0000
commit57dd0ffcb65ed472540492a0a03409e375dec298 (patch)
tree7e518af8cc05fa28ba112d0d104560459dc9ed44 /include/ws_core.inc.php
parent2676ad8cb3d91d06342a77ce35ddd9b05bbcd44f (diff)
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
Diffstat (limited to '')
-rw-r--r--include/ws_core.inc.php2
1 files changed, 2 insertions, 0 deletions
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;
}