Skip to content

Commit 288dbc9

Browse files
committed
fix invisible images on BS5
1 parent 13d8066 commit 288dbc9

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

exponent_version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
// the info for the "next" version if we are a pre-release from the repository
5151
define('EXPONENT_VERSION_MAJOR', 2);
5252
define('EXPONENT_VERSION_MINOR', 7);
53-
define('EXPONENT_VERSION_REVISION', 2);
53+
define('EXPONENT_VERSION_REVISION', 3);
5454
define('EXPONENT_VERSION_TYPE', 'develop');
5555
define('EXPONENT_VERSION_ITERATION', null);
5656
define('EXPONENT_VERSION_BUILDDATE', time());

framework/plugins/function.img.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,17 @@ function smarty_function_img($params,&$smarty)
4949
// set html dimension attributes
5050
$dims = '';
5151
if (isset($params['w']) && isset($params['h']) && isset($params['zc'])) {
52+
if ($params['h'] === '0')
53+
$params['h'] = '';
5254
$dims = ' height="' . $params['h'] . '" width="' . $params['w'] . '"';
53-
} elseif (isset($params['w']) && isset($params['h'])) {
54-
$dims = ' height="'.$params['h'].'" width="'.$params['w'].'"';
55-
} elseif (isset($params['w'])) {
56-
$dims = ' width="'.$params['w'].'"';
57-
} elseif (isset($params['h'])) {
58-
$dims = ' height="'.$params['h'].'"';
55+
} elseif (isset($params['w']) && isset($params['h'])) {
56+
if ($params['h'] === '0')
57+
$params['h'] = '';
58+
$dims = ' height="'.$params['h'].'" width="'.$params['w'].'"';
59+
} elseif (isset($params['w'])) {
60+
$dims = ' width="'.$params['w'].'"';
61+
} elseif (isset($params['h'])) {
62+
$dims = ' height="'.$params['h'].'"';
5963
}
6064

6165
if (!isset($params['q']) && defined('THUMB_QUALITY'))

0 commit comments

Comments
 (0)