From 3668067bb13b229d5b2c367d8e4a33d72022ce92 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 25 Oct 2017 16:14:12 -0700 Subject: [PATCH] Static URL fix. --- e107_handlers/e107_class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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']; } /**