Skip to content

Commit

Permalink
bugfix with template loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc André Audet committed Jun 9, 2017
1 parent e56aa79 commit 94a4dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Template.php
Expand Up @@ -69,7 +69,7 @@ public function __construct($name)

$ex_name = explode('/', $name);

$this->path = $config->get('Cervo/Application/Directory') . $ex_name[0] . \DS . 'Templates' . implode('/', array_slice($ex_name, 1)) . '.php';
$this->path = $config->get('Cervo/Application/Directory') . $ex_name[0] . \DS . 'Templates' . \DS . implode('/', array_slice($ex_name, 1)) . '.php';

if (!file_exists($this->path)) {
throw new TemplateFileMissingException();
Expand Down

0 comments on commit 94a4dfe

Please sign in to comment.