From 3a15c026f6a9139735fdf73b802915500e5f38cc Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 21 Dec 2013 21:53:38 -0800 Subject: [PATCH] Fix for default page navigation --- page.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/page.php b/page.php index a31302e40..c758081e0 100644 --- a/page.php +++ b/page.php @@ -206,7 +206,8 @@ class pageClass if(e107::getPref('listPages',false)) { $text .= "

Other Articles

"; // 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) @@ -254,12 +255,13 @@ class pageClass while($row = $sql->fetch()) { + $tmp = $this->listPages(intval($row['chapter_id'])); $var = array( 'CHAPTER_NAME' => $tp->toHtml($row['chapter_name']), 'CHAPTER_ANCHOR' => $frm->name2id($row['chapter_name']), 'CHAPTER_ICON' => $this->chapterIcon($row['chapter_icon']), '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 );