Fix some bugs / typos.

This commit is contained in:
Sébastien Lucas 2012-12-23 14:16:54 +01:00
父節點 ceaae73e19
當前提交 917d363370
共有 1 個檔案被更改,包括 2 行新增3 行删除

查看文件

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