Fix some bugs / typos.

This commit is contained in:
Sébastien Lucas 2012-12-23 14:16:54 +01:00
vecāks ceaae73e19
revīzija 917d363370
1 mainīti faili ar 2 papildinājumiem un 3 dzēšanām

Parādīt failu

@ -30,7 +30,7 @@
switch ($type) switch ($type)
{ {
case "jpg": case "jpg":
header("Content-type: image/jpeg"); header("Content-Type: image/jpeg");
if (isset($_GET["width"])) if (isset($_GET["width"]))
{ {
$file = $book->getFilePath ($type); $file = $book->getFilePath ($type);
@ -83,11 +83,10 @@
} }
break; break;
default: default:
header("Content-type: " . Data::$mimetypes[$type]); header("Content-Type: " . Data::$mimetypes[$type]);
break; break;
} }
$file = $book->getFilePath ($type, $idData, true); $file = $book->getFilePath ($type, $idData, true);
header('Content-Type: ' . $book->getDataById ($idData)->getMimeType ());
header('Content-Disposition: attachment; filename="' . basename ($file) . '"'); header('Content-Disposition: attachment; filename="' . basename ($file) . '"');
header ($config['cops_x_accel_redirect'] . ": " . $config['calibre_internal_directory'] . $file); header ($config['cops_x_accel_redirect'] . ": " . $config['calibre_internal_directory'] . $file);
?> ?>