mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 11:54:26 +02:00
- added $smarty.current_dir which returns the current working directory
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
06/18/2009
|
06/18/2009
|
||||||
- fixed compilation of block plugins when caching enabled
|
- fixed compilation of block plugins when caching enabled
|
||||||
|
- added $smarty.current_dir which returns the current working directory
|
||||||
|
|
||||||
06/14/2009
|
06/14/2009
|
||||||
- fixed array access on super globals
|
- fixed array access on super globals
|
||||||
|
@@ -66,6 +66,9 @@ class Smarty_Internal_Compile_Internal_Smarty_Var extends Smarty_Internal_Compil
|
|||||||
case 'template':
|
case 'template':
|
||||||
$_template_name = $compiler->template->getTemplateFilepath();
|
$_template_name = $compiler->template->getTemplateFilepath();
|
||||||
return "'$_template_name'";
|
return "'$_template_name'";
|
||||||
|
case 'current_dir':
|
||||||
|
$_template_dir_name = dirname($compiler->template->getTemplateFilepath());
|
||||||
|
return "'$_template_dir_name'";
|
||||||
|
|
||||||
case 'version':
|
case 'version':
|
||||||
$_version = Smarty::$_version;
|
$_version = Smarty::$_version;
|
||||||
|
Reference in New Issue
Block a user