mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 10:54:27 +02:00
- bugfix {include} with template names including variable or constants could fail after bugfix from
28.09.2016 https://github.com/smarty-php/smarty/issues/302
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
===== 3.1.31-dev ===== (xx.xx.xx)
|
===== 3.1.31-dev ===== (xx.xx.xx)
|
||||||
|
12.10.2016
|
||||||
|
- bugfix {include} with template names including variable or constants could fail after bugfix from
|
||||||
|
28.09.2016 https://github.com/smarty-php/smarty/issues/302
|
||||||
|
|
||||||
08.10.2016
|
08.10.2016
|
||||||
- optimization move runtime extension for template functions into Smarty objects
|
- optimization move runtime extension for template functions into Smarty objects
|
||||||
|
|
||||||
|
@@ -114,7 +114,7 @@ class Smarty extends Smarty_Internal_TemplateBase
|
|||||||
/**
|
/**
|
||||||
* smarty version
|
* smarty version
|
||||||
*/
|
*/
|
||||||
const SMARTY_VERSION = '3.1.31-dev/33';
|
const SMARTY_VERSION = '3.1.31-dev/34';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* define variable scopes
|
* define variable scopes
|
||||||
|
@@ -107,7 +107,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase
|
|||||||
$compiled->includes[ $fullResourceName ] = 1;
|
$compiled->includes[ $fullResourceName ] = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$fullResourceName = "'" . $fullResourceName . "'";
|
$fullResourceName = $match[ 1 ] . $fullResourceName . $match[ 1 ];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (empty($match[ 5 ])) {
|
if (empty($match[ 5 ])) {
|
||||||
@@ -295,8 +295,7 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase
|
|||||||
{
|
{
|
||||||
$uid = $tpl->source->type . $tpl->source->uid;
|
$uid = $tpl->source->type . $tpl->source->uid;
|
||||||
if (!($tpl->source->handler->uncompiled) && $tpl->source->exists) {
|
if (!($tpl->source->handler->uncompiled) && $tpl->source->exists) {
|
||||||
$compiler->parent_compiler->mergedSubTemplatesData[ $uid ][ $t_hash ][ 'uid' ] =
|
$compiler->parent_compiler->mergedSubTemplatesData[ $uid ][ $t_hash ][ 'uid' ] = $tpl->source->uid;
|
||||||
$tpl->source->uid;
|
|
||||||
if (isset($compiler->template->inheritance)) {
|
if (isset($compiler->template->inheritance)) {
|
||||||
$tpl->inheritance = clone $compiler->template->inheritance;
|
$tpl->inheritance = clone $compiler->template->inheritance;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user