summaryrefslogtreecommitdiff
path: root/app/Core/Template.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-22 21:31:30 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-22 21:31:30 -0400
commit9707c0b4c4145b9fbdab3a2ecb40c92633dacab1 (patch)
tree126918a559d09d5e1bda51f5baf520e399c3c10f /app/Core/Template.php
parent5d1507522366e51be79813fd5a0c80e96001a964 (diff)
Make unit tests pass under Windows
Diffstat (limited to 'app/Core/Template.php')
-rw-r--r--app/Core/Template.php5
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;