diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-10-04 19:06:23 +0200 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-10-04 19:06:23 +0200 |
| commit | 760b1dda71e706a9014b85d34025874e9ef7bbeb (patch) | |
| tree | 90cd4f758b2817682b1ef5aa2a67b1123d5ee684 /static | |
| parent | 17dd0a062cc8d2b8075f3f5e18da7246e8c8885a (diff) | |
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.
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 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); |
