mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 03:16:36 -04:00
Replace Template::Emit...() functions with more generic function
This commit is contained in:
parent
f449c024ea
commit
806939ca49
40 changed files with 86 additions and 68 deletions
|
@ -59,7 +59,7 @@ try{
|
|||
setcookie('download-count', (string)$downloadCount, ['expires' => intval((new DateTimeImmutable('+2 week'))->format(Enums\DateTimeFormat::UnixTimestamp->value)), 'path' => '/', 'domain' => SITE_DOMAIN, 'secure' => true, 'httponly' => false, 'samesite' => 'Lax']);
|
||||
}
|
||||
catch(Exceptions\InvalidFileException | Exceptions\EbookNotFoundException){
|
||||
Template::Emit404();
|
||||
Template::ExitWithCode(Enums\HttpCode::NotFound);
|
||||
}
|
||||
?><?= Template::Header(['title' => 'Your Download Has Started!', 'downloadUrl' => $downloadUrl]) ?>
|
||||
<main class="donate">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue