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

Fixes #3894 - Chapter breadcrumb displaying when no chapter in use.

This commit is contained in:
Cameron
2019-07-23 17:45:23 -07:00
parent f4a47d44e9
commit c98845b48a

View File

@@ -602,6 +602,7 @@ class cpage_shortcodes extends e_shortcode
if(empty($brow['chapter_sef']))
{
//e107::getDebug()->log($this);
return null;
}
@@ -618,8 +619,14 @@ class cpage_shortcodes extends e_shortcode
function sc_chapter_breadcrumb()
{
$row = $this->getChapter();
$brow = $this->getBook($row['chapter_parent']);
// $this->breadcrumb();
if(empty($brow['chapter_sef']))
{
return null;
}
$breadcrumb = e107::breadcrumb();