mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Fix for banner image size in admin.
This commit is contained in:
parent
cfbd9c85fb
commit
098f386c19
@ -449,7 +449,7 @@ class banner_form_ui extends e_admin_form_ui
|
||||
switch($mode)
|
||||
{
|
||||
case 'read': // List Page
|
||||
return e107::getParser()->toImage($curVal);
|
||||
return e107::getParser()->toImage($curVal, array('h'=>100));
|
||||
break;
|
||||
|
||||
case 'write': // Edit Page
|
||||
|
@ -84,7 +84,7 @@ class banner_shortcodes extends e_shortcode
|
||||
default:
|
||||
|
||||
$class = empty($parm['class']) ? "e-banner img-responsive" : $parm['class'];
|
||||
$ban_ret = $tp->toImage($row['banner_image'], array('class'=> $class , 'alt'=>$row['banner_clickurl'], 'legacy'=>'{e_IMAGE}banners'));
|
||||
$ban_ret = $tp->toImage($row['banner_image'], array('class'=> $class , 'alt'=>basename($row['banner_image']), 'legacy'=>'{e_IMAGE}banners'));
|
||||
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user