Add a config option to not use URL rewriting by default
Also fix a bug preventing download
這個提交存在於:
父節點
93f1f72a65
當前提交
fe55e86def
共有 3 個檔案被更改,包括 21 行新增 和 3 行删除
|
@ -8,6 +8,7 @@
|
|||
|
||||
require_once ("config.php");
|
||||
require_once ("book.php");
|
||||
require_once ("data.php");
|
||||
|
||||
global $config;
|
||||
$expires = 60*60*24*14;
|
||||
|
@ -82,7 +83,7 @@
|
|||
}
|
||||
break;
|
||||
default:
|
||||
header("Content-type: " . Book::$mimetypes[$type]);
|
||||
header("Content-type: " . Data::$mimetypes[$type]);
|
||||
break;
|
||||
}
|
||||
$file = $book->getFilePath ($type, $idData, true);
|
||||
|
|
載入中…
新增表格
Add a link
新增問題並參考