Permalink
Browse files

Fix replace

  • Loading branch information...
1 parent 449bc23 commit ffeb71c3a166b0458b5276d6364d5cb5a9c79d07 @cdujeu cdujeu committed Sep 15, 2016
Showing with 4 additions and 2 deletions.
  1. +4 −2 dist/phing/adhoctasks.xml
@@ -147,9 +147,11 @@ class PydioParseGitSummarize extends Task
$this->log("-- Skipping ".$path, Project::MSG_INFO);
continue;
}
- $end = str_replace($this->prefixPath, "", $path);
+ $pref = str_replace("/", "\/", $this->prefixPath);
+ $end = preg_replace("/^".$pref."/", "", $path);
} else {
- $end = str_replace($this->sourceDir, '', $path);
+ $pref = str_replace("/", "\/", $this->sourceDir);
+ $end = preg_replace("/^".$pref."/", "", $path);
}
if (in_array($end, $this->ignores)) {
continue;

0 comments on commit ffeb71c

Please sign in to comment.