mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
- added $smarty.current_dir which returns the current working directory
This commit is contained in:
@@ -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
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user