From 6dadc69e659d61b3eb07fb1fddfde8205d4893c7 Mon Sep 17 00:00:00 2001 From: Vasily Krakovetsky Date: Wed, 5 Oct 2016 12:50:44 +0300 Subject: [PATCH] fix for pthumb stop working in MODX 2.5.1 --- core/components/phpthumbof/model/phpthumbof.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/components/phpthumbof/model/phpthumbof.class.php b/core/components/phpthumbof/model/phpthumbof.class.php index 4e1141d..29a9237 100644 --- a/core/components/phpthumbof/model/phpthumbof.class.php +++ b/core/components/phpthumbof/model/phpthumbof.class.php @@ -437,6 +437,7 @@ public function createThumbnail($src, $options) { $this->phpThumb->config_document_root = MODX_BASE_PATH; // default if nothing set from system settings } $this->phpThumb->config_cache_directory = "{$this->config['cachePath']}$cacheFilenamePrefix"; // doesn't matter, but saves phpThumb some frustration + $this->phpThumb->config_temp_directory = "{$this->config['cachePath']}$cacheFilenamePrefix"; $this->phpThumb->setSourceFilename(($this->input[0] === '/' || $this->input[1] === ':') ? $this->input : MODX_BASE_PATH . $this->input); if (!$this->phpThumb->GenerateThumbnail()) { // create the thumbnail