mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: fixed access to asset_preview_width in getFieldsForImage
This commit is contained in:
parent
373da53826
commit
c63d840561
@ -692,7 +692,7 @@ class HtmlEditorField_Toolbar extends RequestHandler {
|
||||
*/
|
||||
protected function getFieldsForImage($url, $file) {
|
||||
if($file->File instanceof Image) {
|
||||
$formattedImage = $file->File->generateFormattedImage('SetWidth', Image::$asset_preview_width);
|
||||
$formattedImage = $file->File->generateFormattedImage('SetWidth', Config::inst()->get('Image', 'asset_preview_width'));
|
||||
$thumbnailURL = $formattedImage ? $formattedImage->URL : $url;
|
||||
} else {
|
||||
$thumbnailURL = $url;
|
||||
|
Loading…
Reference in New Issue
Block a user