From: Coleman Watts Date: Mon, 1 Sep 2014 19:09:06 +0000 (+0100) Subject: Fix dynamicResourcepath for windows systems (again) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e0d75ec2e8b8f6875c7f33fd60d9df6732b89b38;p=civicrm-core.git Fix dynamicResourcepath for windows systems (again) --- diff --git a/CRM/Utils/File.php b/CRM/Utils/File.php index 1b3d8a3735..579a7d0b38 100644 --- a/CRM/Utils/File.php +++ b/CRM/Utils/File.php @@ -716,7 +716,7 @@ HTACCESS; // FIXME: Use self::baseFilePath once url issue has been resolved // Windows PHP accepts any mix of "/" or "\"; simpler if we only deal with one of those $imageUploadDir = str_replace('\\', '/', $config->imageUploadDir); - $path = self::addTrailingSlash(str_replace('/persist/contribute', '', $imageUploadDir)) . 'dynamic'; + $path = self::addTrailingSlash(str_replace('/persist/contribute', '', $imageUploadDir), '/') . 'dynamic'; if ($fileName !== NULL) { $path .= "/$fileName"; }