This commit is contained in:
uwe.tews@googlemail.com
2012-01-27 19:30:53 +00:00
parent d8b26c5ad0
commit 9419a999c9
2 changed files with 5 additions and 2 deletions

View File

@@ -1,4 +1,7 @@
===== trunk =====
27.01.2012
- bugfix Smarty did not a template name of "0" (Forum Topic 20895)
20.01.2012
- bugfix typo in Smarty_Internal_Get_IncludePath did cause runtime overhead (Issue 74)
- improvment remove unneeded assigments (Issue 75 and 76)

View File

@@ -622,8 +622,8 @@ class Smarty_Internal_Template extends Smarty_Internal_TemplateBase {
{
switch ($property_name) {
case 'source':
if (empty($this->template_resource)) {
throw new SmartyException("Unable to parse resource name \"{$this->template_resource}\"");
if (strlen($this->template_resource) == 0) {
throw new SmartyException('Missing template name');
}
$this->source = Smarty_Resource::source($this);
// cache template object under a unique ID