1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Fix for banner image size in admin.

This commit is contained in:
Cameron 2016-12-19 14:22:45 -08:00
parent cfbd9c85fb
commit 098f386c19
2 changed files with 2 additions and 2 deletions

View File

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

View File

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