From c9e7971c41e629969d83c817184e7fe8f421c99c Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Tue, 26 Aug 2014 09:33:10 +0000 Subject: [PATCH] Fix button size determination --- .../libs/classes/Mibew/Controller/ButtonCodeController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mibew/libs/classes/Mibew/Controller/ButtonCodeController.php b/src/mibew/libs/classes/Mibew/Controller/ButtonCodeController.php index 2f901193..c3c651cf 100644 --- a/src/mibew/libs/classes/Mibew/Controller/ButtonCodeController.php +++ b/src/mibew/libs/classes/Mibew/Controller/ButtonCodeController.php @@ -103,10 +103,10 @@ class ButtonCodeController extends AbstractController : $image_locales[0]; } - $file = MIBEW_FS_ROOT . '/locales/${lang}/button/${image}_on.png'; + $file = MIBEW_FS_ROOT . "/locales/{$lang}/button/{$image}_on.png"; if (!is_readable($file)) { // Fallback to .gif image - $file = MIBEW_FS_ROOT . '/locales/${lang}/button/${image}_on.gif'; + $file = MIBEW_FS_ROOT . "/locales/{$lang}/button/{$image}_on.gif"; } $size = get_image_size($file);