ezsystems/ezie — pull request #17 by jeromegamez (2013-09-12 14:01:14+00:00)
Title: Fix EZP-21558: Changed working folder to storageDirectory

Starting with the implementation of [PR #750|https://github.com/ezsystems/ezpublish-legacy/pull/750] in ezpublish-legacy, eZ Image Editor stopped working.

eZIE works with the cache directory for creating copies and thumbnails of the images. When making the initial copies, the paths of the copies are stored in the {{ezdfsfile}} table.

When later trying to fetch those copies (by file path), the files are searched in the {{ezdfsfile_cache}} table, which can't be found there, breaking the Image Editor.

With this patch, the working dir is changed from the cache dir to the storage dir. This ensures that all images will be stored in the same ezdfsfile* table.

Cheers
:octocat: Jérôme