Skip to content

Commit

Permalink
Merge pull request #3810 from colemanw/dynPath
Browse files Browse the repository at this point in the history
Fix dynamicResourceUrl for windows systems
  • Loading branch information
colemanw committed Aug 9, 2014
2 parents 8f64230 + 8ce76a5 commit 5a62b62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Utils/File.php
Expand Up @@ -728,7 +728,7 @@ static function dynamicResourcePath($fileName = NULL) {
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;
}

/**
Expand Down

0 comments on commit 5a62b62

Please sign in to comment.