Cleaned up response codes

Closes #21
This commit is contained in:
Josh Sherman 2013-12-21 19:07:07 -05:00
parent fa5ef9d858
commit a4a994dc19
3 changed files with 15 additions and 6 deletions

View file

@ -90,6 +90,11 @@ class APIv1 extends CustomModule
{
// Unsure why I had to put this here, I guess it's being overridden somewhere in PICKLES
header('Content-type: application/json');
if (isset($this->return['response_code']))
{
Browser::status($this->return['response_code']);
}
}
}