mirror of
https://github.com/e107inc/e107.git
synced 2025-07-14 19:46:22 +02:00
Disable resizeUp on icons
This commit is contained in:
@ -268,7 +268,9 @@ class e_thumbpage
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
$thumb = PhpThumbFactory::create($this->_src_path);
|
$thumb = PhpThumbFactory::create($this->_src_path);
|
||||||
$thumb->setOptions(array('correctPermissions' => true, 'resizeUp'=>true));
|
$sizeUp = ($this->_request['w'] > 110) ? true : false; // don't resizeUp the icon images.
|
||||||
|
$thumb->setOptions(array('correctPermissions' => true, 'resizeUp'=>$sizeUp));
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception $e)
|
catch (Exception $e)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user