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
This commit is contained in:
plegall
2008-09-04 21:37:19 +00:00
parent 2676ad8cb3
commit 57dd0ffcb6
+2
View File
@@ -52,6 +52,8 @@ class PwgError
function PwgError($code, $codeText)
{
set_status_header($code, $codeText);
$this->_code = $code;
$this->_codeText = $codeText;
}