Merge branch 'master' of dimti.ru:lib/Image
This commit is contained in:
@ -1,6 +1,11 @@
|
|||||||
Changelog
|
Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
0.0.21 (2014-05-07)
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
- Merge branch 'master' of dimti.ru:lib/Image. [Alexander Demidov]
|
||||||
|
|
||||||
0.0.20 (2014-05-07)
|
0.0.20 (2014-05-07)
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
@ -11,7 +11,9 @@ abstract class Upload
|
|||||||
public static function &getGreagwarImage($file_path)
|
public static function &getGreagwarImage($file_path)
|
||||||
{
|
{
|
||||||
$greagwar_image = new GreagwarImage($file_path);
|
$greagwar_image = new GreagwarImage($file_path);
|
||||||
$greagwar_image->setCacheDir(Config::get('PATH_WEB_ROOT') . DIRECTORY_SEPARATOR . self::$dir_image_cache);
|
$config_upload = Config::get('Upload');
|
||||||
|
$dir_image_cache = $config_upload ? $config_upload->dir_image_cache : self::$dir_image_cache;
|
||||||
|
$greagwar_image->setCacheDir(Config::get('PATH_WEB_ROOT') . DIRECTORY_SEPARATOR . $dir_image_cache);
|
||||||
return $greagwar_image;
|
return $greagwar_image;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user