Fix 404 path

This commit is contained in:
Alex Cabal 2019-08-24 17:30:43 -05:00
parent 8f33a1021c
commit 68ac986bb5
3 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ try{
}
catch(\Exception $ex){
http_response_code(404);
include(SITE_ROOT . '/www/404.php');
include(SITE_ROOT . '/web/www/404.php');
exit();
}
?><?= Template::Header(['title' => 'Ebooks by ' . strip_tags($ebooks[0]->AuthorsHtml), 'highlight' => 'ebooks', 'description' => 'All of the Standard Ebooks ebooks by ' . strip_tags($ebooks[0]->AuthorsHtml)]) ?>

View file

@ -58,7 +58,7 @@ catch(SeeOtherEbookException $ex){
}
catch(\Exception $ex){
http_response_code(404);
include(SITE_ROOT . '/www/404.php');
include(SITE_ROOT . '/web/www/404.php');
exit();
}
?><?= Template::Header(['title' => strip_tags($ebook->TitleWithCreditsHtml), 'ogType' => 'book', 'coverUrl' => $ebook->DistCoverUrl, 'highlight' => 'ebooks', 'description' => 'The Standard Ebooks edition of ' . $ebook->Title . ': ' . $ebook->Description, 'jsonld' => $ebook->GenerateJsonLd()]) ?>

View file

@ -83,7 +83,7 @@ try{
}
catch(\Exception $ex){
http_response_code(404);
include(SITE_ROOT . '/www/404.php');
include(SITE_ROOT . '/web/www/404.php');
exit();
}
?><?= Template::Header(['title' => $pageTitle, 'highlight' => 'ebooks', 'description' => $pageDescription]) ?>