Skip to content

Commit

Permalink
fix comment lines of inline subtemplates
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Tews committed Apr 19, 2018
1 parent 7c3606e commit 8bea607
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libs/sysplugins/smarty_internal_compile_include.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,12 @@ public function compileInlineTemplate(Smarty_Internal_SmartyTemplateCompiler $co
$tpl->mustCompile = true;
$compiler->parent_compiler->mergedSubTemplatesData[ $uid ][ $t_hash ][ 'nocache_hash' ] =
$tpl->compiled->nocache_hash;
if ($compiler->template->source->type === 'file') {
$sourceInfo = $compiler->template->source->filepath;
if ($tpl->source->type === 'file') {
$sourceInfo = $tpl->source->filepath;
} else {
$basename = $compiler->template->source->handler->getBasename($compiler->template->source);
$sourceInfo = $compiler->template->source->type . ':' .
($basename ? $basename : $compiler->template->source->name);
$basename = $tpl->source->handler->getBasename($tpl->source);
$sourceInfo = $tpl->source->type . ':' .
($basename ? $basename : $tpl->source->name);
}
// get compiled code
$compiled_code = "<?php\n\n";
Expand Down

0 comments on commit 8bea607

Please sign in to comment.