Skip to content

Commit

Permalink
DIRECTORY_SEPARATOR change to forward slash
Browse files Browse the repository at this point in the history
  • Loading branch information
Hubert Prein committed Oct 21, 2016
1 parent 4b96490 commit c44bddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/AmFormsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ public function getDisplayTemplateInfo($defaultTemplate, $overrideTemplate)
// Try to find the template for each available template extension
foreach (craft()->config->get('defaultTemplateExtensions') as $extension) {
if (IOHelper::fileExists($templateFile . '.' . $extension)) {
$pathParts = explode(DIRECTORY_SEPARATOR, $overrideTemplate);
$pathParts = explode('/', $overrideTemplate);
$defaultTemplate = $pathParts[ (count($pathParts) - 1) ];
$templatePath = craft()->path->getSiteTemplatesPath() . implode(DIRECTORY_SEPARATOR, array_slice($pathParts, 0, (count($pathParts) - 1)));
$templatePath = craft()->path->getSiteTemplatesPath() . implode('/', array_slice($pathParts, 0, (count($pathParts) - 1)));
}
}
}
Expand Down

0 comments on commit c44bddb

Please sign in to comment.