Skip to content

Commit

Permalink
Issue nuvoleweb#328: use DIRECTORY_SEPARATOR instead of linux slash
Browse files Browse the repository at this point in the history
  • Loading branch information
omarlopesino committed May 21, 2021
1 parent 26b20fa commit 90b30b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected function processCustomThemeHookProperty(PatternDefinition $definition)
$module = $this->moduleHandler->getModule($definition->getProvider());
$return['path'] = $module->getPath() . '/templates';
if ($this->templateExists($definition->getBasePath(), $definition->getTemplate())) {
$return['path'] = str_replace($this->root . '/', '', $definition->getBasePath());
$return['path'] = str_replace($this->root . DIRECTORY_SEPARATOR, '', $definition->getBasePath());
}
}
return $return;
Expand Down

0 comments on commit 90b30b2

Please sign in to comment.