GX-Bug #44654 » AdminOriginalImagesDirPathFix.patch
src/GXEngine/Classes/CoreServices/Product/Entities/EnvProductImageFileStorageSettings.inc.php (revision ) | ||
---|---|---|
29 | 29 |
*/ |
30 | 30 |
public function getProductOriginalImagesDirPath() |
31 | 31 |
{ |
32 |
if(defined('DIR_WS_ORIGINAL_IMAGES')) |
|
32 |
if(defined('APPLICATION_RUN_MODE') && APPLICATION_RUN_MODE == 'frontend' && defined('DIR_WS_ORIGINAL_IMAGES'))
|
|
33 | 33 |
{ |
34 | 34 |
return DIR_WS_ORIGINAL_IMAGES; |
35 | 35 |
} |
36 |
elseif(defined('DIR_FS_CATALOG_ORIGINAL_IMAGES')) |
|
36 |
elseif(defined('APPLICATION_RUN_MODE') && APPLICATION_RUN_MODE == 'backend' && defined('DIR_FS_CATALOG_ORIGINAL_IMAGES'))
|
|
37 | 37 |
{ |
38 | 38 |
return DIR_FS_CATALOG_ORIGINAL_IMAGES; |
39 | 39 |
} |