1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-03 13:17:24 +02:00

Fix for default page navigation

This commit is contained in:
Cameron
2013-12-21 21:53:38 -08:00
parent fcd1e941cd
commit 3a15c026f6

View File

@@ -206,7 +206,8 @@ class pageClass
if(e107::getPref('listPages',false)) if(e107::getPref('listPages',false))
{ {
$text .= "<h3>Other Articles</h3>"; // Book Title. $text .= "<h3>Other Articles</h3>"; // Book Title.
$text .= $this->listPages(0); // Pages unassigned to Book/Chapters. $tmp = $this->listPages(0);
$text .= $tmp['text']; // Pages unassigned to Book/Chapters.
} // } //
if($text) if($text)
@@ -254,12 +255,13 @@ class pageClass
while($row = $sql->fetch()) while($row = $sql->fetch())
{ {
$tmp = $this->listPages(intval($row['chapter_id']));
$var = array( $var = array(
'CHAPTER_NAME' => $tp->toHtml($row['chapter_name']), 'CHAPTER_NAME' => $tp->toHtml($row['chapter_name']),
'CHAPTER_ANCHOR' => $frm->name2id($row['chapter_name']), 'CHAPTER_ANCHOR' => $frm->name2id($row['chapter_name']),
'CHAPTER_ICON' => $this->chapterIcon($row['chapter_icon']), 'CHAPTER_ICON' => $this->chapterIcon($row['chapter_icon']),
'CHAPTER_DESCRIPTION' => $tp->toHtml($row['chapter_meta_description'],true,'BODY'), 'CHAPTER_DESCRIPTION' => $tp->toHtml($row['chapter_meta_description'],true,'BODY'),
'PAGES' => $this->listPages(intval($row['chapter_id'])), 'PAGES' => $tmp['text'],
'CHAPTER_URL' => e_BASE."page.php?ch=".intval($row['chapter_id']) // FIXME SEF-URL 'CHAPTER_URL' => e_BASE."page.php?ch=".intval($row['chapter_id']) // FIXME SEF-URL
); );