diff --git a/services/AmFormsService.php b/services/AmFormsService.php index 76e8cc9..4ccc82e 100644 --- a/services/AmFormsService.php +++ b/services/AmFormsService.php @@ -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))); } } }