Add a config option to not use URL rewriting by default
Also fix a bug preventing download
This commit is contained in:
parent
93f1f72a65
commit
fe55e86def
3 changed files with 21 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue