summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-09-29 18:23:23 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-09-29 18:23:23 +0200
commitd35246bf1bc1b8a2aacf038ba4835dd12fcad4ed (patch)
tree26d66d97b20e444bbcf298248947be4dcb771b67
parente39a920f6d41f8d90470f15c4a58f6abebbace92 (diff)
Improve consistency by resorting Response.send()
This restores the typical sorting order: - csv - (gyazo) - text - html - default (json)
-rwxr-xr-xstatic/classes/Response.class.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/static/classes/Response.class.php b/static/classes/Response.class.php
index c8ddfa2..48d9311 100755
--- a/static/classes/Response.class.php
+++ b/static/classes/Response.class.php
@@ -80,15 +80,15 @@ class Response
$response = null;
switch ($this->type) {
- case 'html':
- $response = $this->html_success($files);
- break;
case 'csv':
$response = $this->csv_success($files);
break;
case 'text':
$response = $this->text_success($files);
break;
+ case 'html':
+ $response = $this->html_success($files);
+ break;
default:
$response = $this->json_success($files);
break;