mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 13:24:41 +03:00
Fix button size determination
This commit is contained in:
parent
e97f3d1fbf
commit
c9e7971c41
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user