1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 10:04:35 +02:00

Fix for admin-ui preview image size.

This commit is contained in:
Cameron
2020-12-07 09:24:49 -08:00
parent 8d7ccbc294
commit 111cad6307
3 changed files with 9 additions and 2 deletions

View File

@@ -228,7 +228,7 @@ class e_thumbnail
$fname = e107::getParser()->thumbCacheFile($this->_src_path, $options);
$cache_filename = e_CACHE_IMAGE . $fname;
$this->sendCachedImage($cache_filename, $thumbnfo);
// $this->sendCachedImage($cache_filename, $thumbnfo);
// No Cached file found - proceed with image creation.
@@ -273,7 +273,7 @@ class e_thumbnail
});
}
elseif(!empty($this->_request['ah']))
elseif(!empty($this->_request['ah']) || !empty($this->_request['aw']))
{
$img->fit(vartrue($this->_request['aw'], null), vartrue($this->_request['ah'], null), null, 'top');
}