Skip to content

View\FolderDesignDocument didn't support Windows #1

Merged
merged 1 commit into from Aug 17, 2012
View
2 lib/Doctrine/CouchDB/View/FolderDesignDocument.php
@@ -29,7 +29,7 @@ public function getData()
foreach ($ri AS $path) {
$fileData = $this->getFileData($path);
if ($fileData !== null) {
- $parts = explode("/", ltrim(str_replace($this->folderPath, '', $fileData["key"]), '/'));
+ $parts = explode(DIRECTORY_SEPARATOR, ltrim(str_replace($this->folderPath, '', $fileData["key"]), DIRECTORY_SEPARATOR));
if (count($parts) == 3) {
$this->data[$parts[0]][$parts[1]][$parts[2]] = $fileData["data"];
Something went wrong with that request. Please try again.