diff options
Diffstat (limited to 'app/Core/Template.php')
-rw-r--r-- | app/Core/Template.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/Core/Template.php b/app/Core/Template.php index 002b20b1..ce2884a7 100644 --- a/app/Core/Template.php +++ b/app/Core/Template.php @@ -84,9 +84,10 @@ class Template extends Helper if (strpos($template_name, ':') !== false) { list($plugin, $template) = explode(':', $template_name); - $path = __DIR__.'/../../plugins/'.ucfirst($plugin).'/Template/'.$template.'.php'; + $path = __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'plugins'; + $path .= DIRECTORY_SEPARATOR.ucfirst($plugin).DIRECTORY_SEPARATOR.'Template'.DIRECTORY_SEPARATOR.$template.'.php'; } else { - $path = __DIR__.'/../Template/'.$template_name.'.php'; + $path = __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'Template'.DIRECTORY_SEPARATOR.$template_name.'.php'; } return $path; |