From fcdd4bcb6a08f63a7efb33fe3caf046fae7813fa Mon Sep 17 00:00:00 2001 From: Serios Date: Mon, 17 Mar 2025 13:33:43 +0200 Subject: [PATCH] Proper generation of Gallery breadcrumb Fixing a mistyped condition, causing improper gallery plugin breadcrumb generation --- e107_plugins/gallery/e_shortcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_plugins/gallery/e_shortcode.php b/e107_plugins/gallery/e_shortcode.php index 81d0a053f..3df6c546b 100644 --- a/e107_plugins/gallery/e_shortcode.php +++ b/e107_plugins/gallery/e_shortcode.php @@ -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)); }