Skip to content

Commit

Permalink
Solved a bug with relative path definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsdeBlaauw committed Jan 5, 2016
1 parent d48bf3c commit 868dc7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Smarty.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public static function getInstance($name = '_stdout'){
public static function getUnique() {
$smarty = new \Smarty();

$smarty->template_dir = dirname(__FILE__).'/../../../../templates';
$smarty->compile_dir = dirname(__FILE__).'/../../../../cache/templates_c';
$smarty->template_dir = realpath(dirname(__FILE__).'/../../../../templates');
$smarty->compile_dir = realpath(dirname(__FILE__).'/../../../../cache/templates_c');
$smarty->debugging = false;

if (defined('DEBUG') && DEBUG === true && defined('FORCE_COMPILE') && FORCE_COMPILE === true) {
Expand Down

0 comments on commit 868dc7f

Please sign in to comment.