Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
aerouk authored and StyleCIBot committed Feb 11, 2017
1 parent 16c8d5c commit 806c29c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions public/viewer.php
Expand Up @@ -3,10 +3,10 @@
require_once __DIR__ . '/protected/config/config.php';

$types = array(
"png" => "image/png",
"jpeg" => "image/jpeg",
"gif" => "image/gif",
"webm" => "video/webm"
'png' => 'image/png',
'jpeg' => 'image/jpeg',
'gif' => 'image/gif',
'webm' => 'video/webm',
);

$index = ! (isset($_GET['type']) && isset($_GET['file']));
Expand All @@ -32,8 +32,8 @@
if (RAW_IMAGE && strpos($_SERVER['HTTP_USER_AGENT'], 'Twitterbot') === false) {
$filecontents = fopen($filelocation, 'rb');

header("Content-type: " . $types[$type]);
header("Content-length: " . $filesize);
header('Content-type: ' . $types[$type]);
header('Content-length: ' . $filesize);

fpassthru($filecontents);
exit;
Expand Down

0 comments on commit 806c29c

Please sign in to comment.