1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Added missing breadcrumb item (page-title) when viewing a page for consistency with other breadcrumbs like News etc.

This commit is contained in:
Cameron
2021-06-12 16:53:59 -07:00
parent aa6e449aee
commit f2966468ea

View File

@@ -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;