From: Coleman Watts Date: Sat, 9 Aug 2014 16:06:48 +0000 (+0100) Subject: Fix dynamicResourceUrl for windows systems X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8ce76a5600b28c7efd21b75fd89c3a97f47bee02;p=civicrm-core.git Fix dynamicResourceUrl for windows systems --- diff --git a/CRM/Utils/File.php b/CRM/Utils/File.php index 32819fcc1d..fb25837908 100644 --- a/CRM/Utils/File.php +++ b/CRM/Utils/File.php @@ -728,7 +728,7 @@ HTACCESS; static function dynamicResourceUrl($fileName) { $config = CRM_Core_Config::singleton(); // FIXME: Need a better way of getting the url of the baseFilePath - return self::addTrailingSlash(str_replace('/persist/contribute', '', $config->imageUploadURL)) . 'dynamic/' . $fileName; + return self::addTrailingSlash(str_replace('/persist/contribute', '', $config->imageUploadURL), '/') . 'dynamic/' . $fileName; } /**