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:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user