mirror of
https://github.com/smarty-php/smarty.git
synced 2025-10-16 14:05:21 +02:00
code cleanup and optimizations 3.1.32-dev-34
This commit is contained in:
@@ -85,10 +85,10 @@ class Smarty_Internal_Resource_Php extends Smarty_Internal_Resource_File
|
||||
public function renderUncompiled(Smarty_Template_Source $source, Smarty_Internal_Template $_template)
|
||||
{
|
||||
if (!$source->smarty->allow_php_templates) {
|
||||
throw new SmartyException("PHP templates are disabled");
|
||||
throw new SmartyException('PHP templates are disabled');
|
||||
}
|
||||
if (!$source->exists) {
|
||||
throw new SmartyException("Unable to load template {$source->type} '{$source->name}'" .
|
||||
throw new SmartyException("Unable to load template '{$source->type}:{$source->name}'" .
|
||||
($_template->_isSubTpl() ? " in '{$_template->parent->template_resource}'" : ''));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user