Fix button size determination

This commit is contained in:
Dmitriy Simushev 2014-08-26 09:33:10 +00:00
parent e97f3d1fbf
commit c9e7971c41

View File

@ -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);