mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 18:14:26 +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']))
|
if(empty($brow['chapter_sef']))
|
||||||
{
|
{
|
||||||
|
//e107::getDebug()->log($this);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -619,7 +620,13 @@ class cpage_shortcodes extends e_shortcode
|
|||||||
function sc_chapter_breadcrumb()
|
function sc_chapter_breadcrumb()
|
||||||
{
|
{
|
||||||
|
|
||||||
// $this->breadcrumb();
|
$row = $this->getChapter();
|
||||||
|
$brow = $this->getBook($row['chapter_parent']);
|
||||||
|
|
||||||
|
if(empty($brow['chapter_sef']))
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$breadcrumb = e107::breadcrumb();
|
$breadcrumb = e107::breadcrumb();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user