diff options
Diffstat (limited to 'static/classes/Response.class.php')
| -rwxr-xr-x | static/classes/Response.class.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/static/classes/Response.class.php b/static/classes/Response.class.php index c340a4c..037d94f 100755 --- a/static/classes/Response.class.php +++ b/static/classes/Response.class.php @@ -16,9 +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'; + case 'html': + header('Content-Type: text/html; charset=UTF-8'); + $this->type = $response_type; break; default: header('Content-Type: application/json; charset=UTF-8'); @@ -106,6 +106,7 @@ class Response { return POMF_URL.$files[0]['url']; } + private static function txt_error($code, $description) { return 'ERROR: ('.$code.') '.$description; @@ -128,7 +129,7 @@ class Response private static function html_success($files) { foreach ($files as $file) { - $result .= "<a href=\"".$file['url']."\">".$file['url']."</a><br>"; + $result .= '<a href="'.$file['url'].'">'.$file['url'].'</a><br>'; } return $result; |
