From a275e7a8cf55e409545359ebd1efad4020755ab8 Mon Sep 17 00:00:00 2001 From: Jimako Date: Sun, 24 Oct 2021 22:53:40 +0200 Subject: [PATCH] fix #4607 banner correct size on news detail page --- e107_plugins/banner/banner_menu.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e107_plugins/banner/banner_menu.php b/e107_plugins/banner/banner_menu.php index a7c9f7087..96dadc4cc 100644 --- a/e107_plugins/banner/banner_menu.php +++ b/e107_plugins/banner/banner_menu.php @@ -82,6 +82,8 @@ if(!empty($menu_pref['banner_campaign']) /*&& !empty($menu_pref['banner_amount'] if(!empty($menu_pref['banner_width'])) { e107::getParser()->thumbWidth($menu_pref['banner_width']); + e107::getParser()->thumbHeight(0); + e107::getParser()->thumbCrop(0); } @@ -198,4 +200,4 @@ if(!empty($menu_pref['banner_campaign']) /*&& !empty($menu_pref['banner_amount'] } -} \ No newline at end of file +}