1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 23:56:58 +02:00

Breadcrumb fallback fix.

This commit is contained in:
Cameron
2019-06-15 16:55:13 -07:00
parent 346d42bdfb
commit 1cca064f0f
2 changed files with 16 additions and 1 deletions

View File

@@ -975,6 +975,21 @@ if (!class_exists('e107table', false))
}
/**
* Return the first caption rendered with {SETSTYLE=default} or {SETSTYLE=main}
* @return |null
*/
public function getMainCaption()
{
if(isset($this->mainRenders[0]['caption']))
{
return $this->mainRenders[0]['caption'];
}
return null;
}
function getMagicShortcodes()
{
$ret = array();