Visual Console Refactor: bugfixes
Former-commit-id: 09c2b268fd179f81f3041be774f199abe088b4f3
This commit is contained in:
parent
8fc5951209
commit
d6bd44d1c0
|
@ -262,11 +262,7 @@ final class Group extends Item
|
|||
// If the width or the height are equal to 0 we will extract them
|
||||
// from the real image size.
|
||||
if ((int) $data['width'] === 0 || (int) $data['height'] === 0) {
|
||||
if (\is_metaconsole()) {
|
||||
$imagePath = '../../'.$imagePath;
|
||||
}
|
||||
|
||||
$sizeImage = getimagesize($imagePath);
|
||||
$sizeImage = getimagesize($config['homedir'].'/'.$imagePath);
|
||||
$data['width'] = $sizeImage[0];
|
||||
$data['height'] = $sizeImage[1];
|
||||
}
|
||||
|
|
|
@ -118,12 +118,7 @@ final class Icon extends Item
|
|||
// If the width or the height are equal to 0 we will extract them
|
||||
// from the real image size.
|
||||
if ((int) $data['width'] === 0 || (int) $data['height'] === 0) {
|
||||
// Hack to retrieve the image from the metaconsole's index.
|
||||
if (\is_metaconsole()) {
|
||||
$imagePath = '../../'.$imagePath;
|
||||
}
|
||||
|
||||
$sizeImage = getimagesize($imagePath);
|
||||
$sizeImage = getimagesize($config['homedir'].'/'.$imagePath);
|
||||
$data['width'] = $sizeImage[0];
|
||||
$data['height'] = $sizeImage[1];
|
||||
}
|
||||
|
|
|
@ -190,12 +190,7 @@ final class StaticGraph extends Item
|
|||
// If the width or the height are equal to 0 we will extract them
|
||||
// from the real image size.
|
||||
if ((int) $data['width'] === 0 || (int) $data['height'] === 0) {
|
||||
// Hack to retrieve the image from the metaconsole's index.
|
||||
if (\is_metaconsole()) {
|
||||
$imagePath = '../../'.$imagePath;
|
||||
}
|
||||
|
||||
$sizeImage = getimagesize($imagePath);
|
||||
$sizeImage = getimagesize($config['homedir'].'/'.$imagePath);
|
||||
$data['width'] = $sizeImage[0];
|
||||
$data['height'] = $sizeImage[1];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue