mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +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:
@@ -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'));
|
$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);
|
e107::breadcrumb($breadcrumb);
|
||||||
$this->breadcrumbComplete = true;
|
$this->breadcrumbComplete = true;
|
||||||
|
Reference in New Issue
Block a user