Fix dynamicResourcepath for windows systems
authorColeman Watts <coleman@civicrm.org>
Sat, 9 Aug 2014 16:43:39 +0000 (17:43 +0100)
committerColeman Watts <coleman@civicrm.org>
Sat, 9 Aug 2014 16:43:39 +0000 (17:43 +0100)
CRM/Utils/File.php

index fb25837908d7dd6c4a378b2006b0118a26a07437..b24eb271ca2353ddd4a999c934c2341ffb17709f 100644 (file)
@@ -713,7 +713,7 @@ HTACCESS;
   static function dynamicResourcePath($fileName = NULL) {
     $config = CRM_Core_Config::singleton();
     // FIXME: Use self::baseFilePath once url issue has been resolved
-    $path = self::addTrailingSlash(str_replace('/persist/contribute', '', $config->imageUploadDir)) . 'dynamic';
+    $path = self::addTrailingSlash(str_replace(array('/persist/contribute', '\persist\contribute'), '', $config->imageUploadDir)) . 'dynamic';
     if ($fileName !== NULL) {
       $path .= "/$fileName";
     }