diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index 2eb7f7c30..93c7330c4 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -4029,7 +4029,10 @@ class e107 { return $this->e107_dirs[$dir.'_HTTP']; } - return e_HTTP.$this->e107_dirs[$dir.'_DIRECTORY']; + + $http = ($dir === "CACHE_IMAGE" && defined('e_MEDIA_STATIC') && defined('e_HTTP_STATIC')) ? e_HTTP_STATIC : e_HTTP; + + return $http.$this->e107_dirs[$dir.'_DIRECTORY']; } /**