mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
- bufix {$smarty.template} does include now the relative path, not just filename
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
|
15/07/2010
|
||||||
|
- bufix {$smarty.template} does include now the relative path, not just filename
|
||||||
|
|
||||||
===== RC3 =====
|
===== RC3 =====
|
||||||
|
|
||||||
|
@@ -55,7 +55,7 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'template':
|
case 'template':
|
||||||
$_template_name = basename($compiler->template->getTemplateFilepath());
|
$_template_name = $compiler->template->template_resource;
|
||||||
return "'$_template_name'";
|
return "'$_template_name'";
|
||||||
|
|
||||||
case 'current_dir':
|
case 'current_dir':
|
||||||
@@ -97,4 +97,4 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Reference in New Issue
Block a user