1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 20:31:41 +02:00

Blurry avatar fix and usersettings template fix. Also added $tp->setThumbSize($w,$h,$crop);

This commit is contained in:
Cameron
2013-05-07 18:32:38 -07:00
parent c2412d1270
commit a47cadb9b9
5 changed files with 51 additions and 16 deletions

View File

@@ -1834,6 +1834,28 @@ class e_parse extends e_parser
return $text;
}
public function setThumbSize($w=null,$h=null,$crop=null)
{
if($w)
{
$this->thumbWidth = intval($w);
}
if($h)
{
$this->thumbHeight = intval($h);
}
if($crop)
{
$this->thumbCrop = intval($crop);
}
}
/**
* @param $url
* @param $options ??