$config = CRM_Core_Config::singleton();
$log = CRM_Core_Error::createDebugLogger();
- $log_filename = $log->_filename;
+ $log_filename = str_replace('\\', '/', $log->_filename);
$filePathMarker = $this->getFilePathMarker();
$config = CRM_Core_Config::singleton();
list ($heuristicBaseUrl, $ignore) = explode($filePathMarker, $config->imageUploadURL);
- list ($ignore, $heuristicSuffix) = explode($filePathMarker, $targetDir);
+ list ($ignore, $heuristicSuffix) = explode($filePathMarker, str_replace('\\', '/', $targetDir));
return $heuristicBaseUrl . $filePathMarker . $heuristicSuffix;
}
}