From c44bddbcb4a18b2b814fd728118808cd30e070b9 Mon Sep 17 00:00:00 2001 From: Hubert Prein Date: Fri, 21 Oct 2016 12:02:21 +0200 Subject: [PATCH] DIRECTORY_SEPARATOR change to forward slash --- services/AmFormsService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))); } } }