summaryrefslogtreecommitdiff
path: root/static/classes
diff options
context:
space:
mode:
authorEliot Whalan <ewhal@pantsu.cat>2016-05-30 01:10:27 +0200
committerEliot Whalan <ewhal@pantsu.cat>2016-05-30 01:10:27 +0200
commit1cfbe8d16e08195c9ca291f2d12ad5909dbedcdc (patch)
tree41f7cf98e2b85a03268dc8b2dbb5430a73021b32 /static/classes
parentaa59bc15c33c378579dc480f659b79d7a969af06 (diff)
Revert "Merge branch 'wub/deprecate-ewhal'"
This reverts commit 647d32a29978579f88baa7c06c207e6a8d6a0d3e, reversing changes made to 22063af06536671b680fa9bc84b4626192c106cc.
Diffstat (limited to 'static/classes')
-rwxr-xr-xstatic/classes/Response.class.php18
1 files changed, 4 insertions, 14 deletions
diff --git a/static/classes/Response.class.php b/static/classes/Response.class.php
index 03dfad7..48b9b58 100755
--- a/static/classes/Response.class.php
+++ b/static/classes/Response.class.php
@@ -58,7 +58,6 @@ class Response
$this->type = $response_type;
break;
case 'html':
- // Deprecated since version 2.1.0
header('Content-Type: text/html; charset=UTF-8');
$this->type = $response_type;
break;
@@ -72,7 +71,6 @@ class Response
$this->type = 'text';
break;
case 'text':
- // Deprecated since version 2.1.0
header('Content-Type: text/plain; charset=UTF-8');
$this->type = $response_type;
break;
@@ -100,14 +98,12 @@ class Response
$response = $this->csv_error($desc);
break;
case 'html':
- // Deprecated since version 2.1.0
$response = $this->html_error($code, $desc);
break;
case 'json':
$response = $this->json_error($code, $desc);
break;
case 'text':
- // Deprecated since version 2.1.0
$response = $this->text_error($code, $desc);
break;
}
@@ -131,14 +127,12 @@ class Response
$response = $this->csv_success($files);
break;
case 'html':
- // Deprecated since version 2.1.0
$response = $this->html_success($files);
break;
case 'json':
$response = $this->json_success($files);
break;
case 'text':
- // Deprecated since version 2.1.0
$response = $this->text_success($files);
break;
}
@@ -182,8 +176,7 @@ class Response
/**
* Indicates with HTML body the request was invalid.
*
- * @deprecated 2.1.0 May be removed in a major release or renamed to
- * camelCase format.
+ * @deprecated 2.1.0 Will be renamed to camelCase format.
* @param int $code HTTP status code number.
* @param int $description Descriptive error message.
* @return string Error message in HTML format.
@@ -196,8 +189,7 @@ class Response
/**
* Indicates with HTML body the request was successful.
*
- * @deprecated 2.1.0 May be removed in a major release or renamed to
- * camelCase format.
+ * @deprecated 2.1.0 Will be renamed to camelCase format.
* @param mixed[] $files
* @return string Success message in HTML format.
*/
@@ -247,8 +239,7 @@ class Response
/**
* Indicates with plain text body the request was invalid.
*
- * @deprecated 2.1.0 May be removed in a major release or renamed to
- * camelCase format.
+ * @deprecated 2.1.0 Will be renamed to camelCase format.
* @param int $code HTTP status code number.
* @param int $description Descriptive error message.
* @return string Error message in plain text format.
@@ -261,8 +252,7 @@ class Response
/**
* Indicates with plain text body the request was successful.
*
- * @deprecated 2.1.0 May be removed in a major release or renamed to
- * camelCase format.
+ * @deprecated 2.1.0 Will be renamed to camelCase format.
* @param mixed[] $files
* @return string Success message in plain text format.
*/