File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/core/Mage/Cms/Model/Wysiwyg/Images Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -339,13 +339,13 @@ public function getThumbnailPath($filePath, $checkFile = false)
339
339
*/
340
340
public function getThumbnailUrl ($ filePath , $ checkFile = false )
341
341
{
342
- $ mediaRootDir = $ this -> getHelper ()->getStorageRoot () ;
342
+ $ mediaRootDir = Mage:: getConfig ()-> getOptions ()->getMediaDir () . DS ;
343
343
344
344
if (strpos ($ filePath , $ mediaRootDir ) === 0 ) {
345
345
$ thumbSuffix = self ::THUMBS_DIRECTORY_NAME . DS . Mage_Cms_Model_Wysiwyg_Config::IMAGE_DIRECTORY
346
346
. DS . substr ($ filePath , strlen ($ mediaRootDir ));
347
347
348
- if (! $ checkFile || is_readable ($ mediaRootDir . $ thumbSuffix )) {
348
+ if (! $ checkFile || is_readable ($ this -> getHelper ()-> getStorageRoot () . $ thumbSuffix )) {
349
349
$ randomIndex = '?rand= ' . time ();
350
350
$ thumbUrl = $ this ->getHelper ()->getBaseUrl () . Mage_Cms_Model_Wysiwyg_Config::IMAGE_DIRECTORY
351
351
. DS . $ thumbSuffix ;
You can’t perform that action at this time.
0 commit comments