Permalink
Browse files

Merge pull request #1 from marnusw/folder_design_doc

View\FolderDesignDocument didn't support Windows
  • Loading branch information...
beberlei committed Aug 17, 2012
2 parents 49b22c8 + a88911e commit bd5911054f39504c884606db6e290a10b7f05f75
Showing with 1 addition and 1 deletion.
  1. +1 −1 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"];

0 comments on commit bd59110

Please sign in to comment.