From: Umherirrender Date: Fri, 15 Dec 2017 22:00:36 +0000 (+0100) Subject: Normalize path in AutoloadGenerator::setExcludePaths X-Git-Tag: 1.31.0-rc.0~1181 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=commitdiff_plain;ds=sidebyside;h=39c9e5f98a7d641ef725bb4909a2de4dc618b230;p=lhc%2Fweb%2Fwiklou.git Normalize path in AutoloadGenerator::setExcludePaths Fix is for windows machine Change-Id: Iadedeb6a04df439c0e940b8eb62fa46757c571c3 --- diff --git a/includes/utils/AutoloadGenerator.php b/includes/utils/AutoloadGenerator.php index 1c7c9b0f0f..1415ea32b4 100644 --- a/includes/utils/AutoloadGenerator.php +++ b/includes/utils/AutoloadGenerator.php @@ -74,7 +74,9 @@ class AutoloadGenerator { * @param string[] $paths */ public function setExcludePaths( array $paths ) { - $this->excludePaths = $paths; + foreach ( $paths as $path ) { + $this->excludePaths[] = self::normalizePathSeparator( $path ); + } } /**