mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-04 19:54:14 +02:00
- bugfix {$smarty.template} in child template did not return right content
- bugfix Smarty3 did not search the PHP include_path for template files
This commit is contained in:
@@ -56,7 +56,7 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C
|
||||
break;
|
||||
|
||||
case 'template':
|
||||
$_template_name = $compiler->template->template_resource;
|
||||
$_template_name = basename($compiler->template->getTemplateFilepath());
|
||||
return "'$_template_name'";
|
||||
|
||||
case 'current_dir':
|
||||
|
||||
Reference in New Issue
Block a user