1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-25 00:41:52 +02:00

Proper generation of Gallery breadcrumb

Fixing a mistyped condition, causing improper gallery plugin breadcrumb generation
This commit is contained in:
Serios
2025-03-17 13:33:43 +02:00
committed by GitHub
parent d58f199f28
commit fcdd4bcb6a

View File

@@ -43,7 +43,7 @@ class gallery_shortcodes extends e_shortcode
$template = e107::getTemplate('gallery', 'gallery', 'cat');
$caption = isset($template['caption']) ? e107::getParser()->toText($template['caption']) : LAN_PLUGIN_GALLERY_TITLE;
if(!empty($var))
if(!empty($this->var))
{
$breadcrumb[] = array('text' => $caption, 'url' => e107::getUrl()->create('gallery', $this->var));
}