1
0
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:
Cameron
2014-01-08 04:25:18 -08:00
parent 0fc0a5c876
commit 78397acfd1

View File

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