From 760b1dda71e706a9014b85d34025874e9ef7bbeb Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Sun, 4 Oct 2015 17:06:23 +0000 Subject: Clarify Gyazo deprecation warning to use text response It is a little unclear what the deprecation warning wants the developer to do. The fallthrough comment to text response may not be immediately obvious to the reader. This commit helps to understand the intention and to avoid bugs such as commit daac77a. --- static/classes/Response.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'static/classes/Response.class.php') diff --git a/static/classes/Response.class.php b/static/classes/Response.class.php index 7c8bd22..cd9229b 100755 --- a/static/classes/Response.class.php +++ b/static/classes/Response.class.php @@ -43,7 +43,7 @@ class Response $this->type = $response_type; break; case 'gyazo': - // Deprecated API since version 2.0.0 + // Deprecated API since version 2.0.0, use text response instead // fallthrough case 'text': header('Content-Type: text/plain; charset=UTF-8'); @@ -71,7 +71,7 @@ class Response $response = $this->json_error($code, $desc); break; case 'gyazo': - // Deprecated API since version 2.0.0 + // Deprecated API since version 2.0.0, use text response instead // fallthrough case 'text': $response = $this->text_error($code, $desc); @@ -97,7 +97,7 @@ class Response $response = $this->json_success($files); break; case 'gyazo': - // Deprecated API since version 2.0.0 + // Deprecated API since version 2.0.0, use text response instead // fallthrough case 'text': $response = $this->text_success($files); -- cgit v1.2.3