Skip to content

Commit 72a4fe5

Browse files
author
h3rby7
committed
formatting
1 parent 55ab5ed commit 72a4fe5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

yesticket/src/rest/image_endpoint.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ public function validationCallback($param, $request = null, $key = null)
9393
// is not a whole number (e.G. 32.5 = true; 32 = false)
9494
return false;
9595
}
96-
// \header('Content-Type: image/jpeg', true);
9796
return true;
9897
}
9998

@@ -135,7 +134,7 @@ public function servePicture($served, $result)
135134
if ($result->get_status() == WP_Http::TEMPORARY_REDIRECT) {
136135
// We make a temporary redirect as error fallback
137136
\ytp_info(__FILE__, __LINE__, "Send out temporary redirect");
138-
ytp_sendHeaders($result);
137+
\ytp_sendHeaders($result);
139138
return true;
140139
}
141140
if (!($result->get_data() instanceof CachedImage)) {
@@ -144,7 +143,7 @@ public function servePicture($served, $result)
144143
return false;
145144
}
146145
// Data is a CachedImage, continue as planned.
147-
ytp_sendHeaders($result);
146+
\ytp_sendHeaders($result);
148147
echo $result->get_data()->get_image_data();
149148
return true;
150149
}

0 commit comments

Comments
 (0)