Browse Source

Merge branch 'master' of dimti.ru:lib/Image

master
Alexander Demidov 11 years ago
parent
commit
1fa48b9b15
  1. 5
      CHANGELOG.md
  2. 4
      Upload.class.php

5
CHANGELOG.md

@ -1,6 +1,11 @@
Changelog
=========
0.0.21 (2014-05-07)
-------------------
- Merge branch 'master' of dimti.ru:lib/Image. [Alexander Demidov]
0.0.20 (2014-05-07)
-------------------

4
Upload.class.php

@ -11,7 +11,9 @@ abstract class Upload
public static function &getGreagwarImage($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;
}

Loading…
Cancel
Save