- added $smarty.current_dir which returns the current working directory

This commit is contained in:
Uwe.Tews
2009-06-18 18:51:21 +00:00
parent b6b4d90487
commit f5aabcd47f
2 changed files with 4 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
06/18/2009
- fixed compilation of block plugins when caching enabled
- added $smarty.current_dir which returns the current working directory
06/14/2009
- fixed array access on super globals

View File

@@ -66,6 +66,9 @@ class Smarty_Internal_Compile_Internal_Smarty_Var extends Smarty_Internal_Compil
case 'template':
$_template_name = $compiler->template->getTemplateFilepath();
return "'$_template_name'";
case 'current_dir':
$_template_dir_name = dirname($compiler->template->getTemplateFilepath());
return "'$_template_dir_name'";
case 'version':
$_version = Smarty::$_version;