Skip to content

Commit

Permalink
[Validator] fixed Xliff loader to use forward slashes in file path
Browse files Browse the repository at this point in the history
  • Loading branch information
avalanche123 authored and fabpot committed Sep 9, 2010
1 parent 1aefe7a commit bb51e7c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -59,7 +59,7 @@ protected function parseFile($file)
throw new \Exception(implode("\n", $this->getXmlErrors()));
}

$parts = explode('/', __DIR__.'/schema/dic/xliff-core/xml.xsd');
$parts = explode('/', str_replace('\\', '/', __DIR__).'/schema/dic/xliff-core/xml.xsd');
$drive = '\\' === DIRECTORY_SEPARATOR ? array_shift($parts).'/' : '';
$location = 'file:///'.$drive.implode('/', array_map('rawurlencode', $parts));

Expand Down

0 comments on commit bb51e7c

Please sign in to comment.