mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-03 09:54:27 +02:00
Fixed the {if} failures.
This commit is contained in:
@@ -316,14 +316,7 @@ class Template extends TemplateBase {
|
||||
$smarty->getDebug()->end_render($tpl);
|
||||
}
|
||||
} else {
|
||||
$tpl->getCompiled()->render($tpl);
|
||||
|
||||
// @TODO: this used to be like this. Might cause a bug.
|
||||
// if (isset($tpl->compiled)) {
|
||||
// $tpl->getCompiled()->render($tpl);
|
||||
// } else {
|
||||
// $tpl->render();
|
||||
// }
|
||||
$tpl->render();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user