From f2966468ea58f6e5fad30c172c52d15f3ab06bb7 Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 12 Jun 2021 16:53:59 -0700 Subject: [PATCH] Added missing breadcrumb item (page-title) when viewing a page for consistency with other breadcrumbs like News etc. --- e107_core/shortcodes/batch/page_shortcodes.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/e107_core/shortcodes/batch/page_shortcodes.php b/e107_core/shortcodes/batch/page_shortcodes.php index dad5d6fff..599e7107b 100644 --- a/e107_core/shortcodes/batch/page_shortcodes.php +++ b/e107_core/shortcodes/batch/page_shortcodes.php @@ -681,8 +681,10 @@ class cpage_shortcodes extends e_shortcode $breadcrumb[] = array('text'=> $row['chapter_name'], 'url'=> e107::getUrl()->create('page/chapter/index', $row,'allow=chapter_id,chapter_sef,book_sef')); } - - + if($action === 'showPage') + { + $breadcrumb[] = array('text'=> $this->var['page_title']); + } e107::breadcrumb($breadcrumb); $this->breadcrumbComplete = true;