Changeset 2499

Show
Ignore:
Timestamp:
09/04/08 23:37:19 (5 years ago)
Author:
plg
Message:

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)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_core.inc.php

    r2478 r2499  
    5353  function PwgError($code, $codeText) 
    5454  { 
     55    set_status_header($code, $codeText); 
     56 
    5557    $this->_code = $code; 
    5658    $this->_codeText = $codeText;