diff options
Diffstat (limited to 'static')
| -rwxr-xr-x | static/classes/Response.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/static/classes/Response.class.php b/static/classes/Response.class.php index b7e4c5d..037d94f 100755 --- a/static/classes/Response.class.php +++ b/static/classes/Response.class.php @@ -16,10 +16,9 @@ class Response header('Content-Type: text/plain; charset=UTF-8'); $this->type = $response_type; break; - case 'html': - header('Content-Type: text/html;charset=utf-8'); - $this->type = 'html'; + header('Content-Type: text/html; charset=UTF-8'); + $this->type = $response_type; break; default: header('Content-Type: application/json; charset=UTF-8'); @@ -107,6 +106,7 @@ class Response { return POMF_URL.$files[0]['url']; } + private static function txt_error($code, $description) { return 'ERROR: ('.$code.') '.$description; |
