1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 21:57:51 +02:00

Remove PHP Warnings. Next/Prev test added.

This commit is contained in:
Cameron
2021-11-24 13:08:04 -08:00
parent f2e5a033b8
commit 81cbe51228
4 changed files with 67 additions and 2 deletions

View File

@@ -38,6 +38,7 @@ if(!e_QUERY)
}
elseif(vartrue($_GET['bk'])) // List Chapters within a specific Book
{
e107::getDebug()->log("Page Mode: Display list of chapters within a book");
$id = $e107CorePage->setRequest('listChapters');
$e107CorePage->listChapters($id);
e107::canonical('page/book/index', $e107CorePage->getChapterData($id));
@@ -50,6 +51,7 @@ elseif(vartrue($_GET['bk'])) // List Chapters within a specific Book
}
elseif(vartrue($_GET['ch'])) // List Pages within a specific Chapter
{
e107::getDebug()->log("Page Mode: Display list of pages within a chapter");
$id = $e107CorePage->setRequest('listPages');
$e107CorePage->listPages($id);
$chData = $e107CorePage->getChapterData($id);
@@ -64,6 +66,7 @@ elseif(vartrue($_GET['ch'])) // List Pages within a specific Chapter
}
else
{
e107::getDebug()->log("Page Mode: Display page");
$e107CorePage->setRequest('showPage');
$e107CorePage->processViewPage();
$e107CorePage->setPage();