mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 02:14:26 +02:00
fix comment lines of inline subtemplates
This commit is contained in:
@@ -295,12 +295,12 @@ class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase
|
|||||||
$tpl->mustCompile = true;
|
$tpl->mustCompile = true;
|
||||||
$compiler->parent_compiler->mergedSubTemplatesData[ $uid ][ $t_hash ][ 'nocache_hash' ] =
|
$compiler->parent_compiler->mergedSubTemplatesData[ $uid ][ $t_hash ][ 'nocache_hash' ] =
|
||||||
$tpl->compiled->nocache_hash;
|
$tpl->compiled->nocache_hash;
|
||||||
if ($compiler->template->source->type === 'file') {
|
if ($tpl->source->type === 'file') {
|
||||||
$sourceInfo = $compiler->template->source->filepath;
|
$sourceInfo = $tpl->source->filepath;
|
||||||
} else {
|
} else {
|
||||||
$basename = $compiler->template->source->handler->getBasename($compiler->template->source);
|
$basename = $tpl->source->handler->getBasename($tpl->source);
|
||||||
$sourceInfo = $compiler->template->source->type . ':' .
|
$sourceInfo = $tpl->source->type . ':' .
|
||||||
($basename ? $basename : $compiler->template->source->name);
|
($basename ? $basename : $tpl->source->name);
|
||||||
}
|
}
|
||||||
// get compiled code
|
// get compiled code
|
||||||
$compiled_code = "<?php\n\n";
|
$compiled_code = "<?php\n\n";
|
||||||
|
Reference in New Issue
Block a user