Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…9a42-0410-99e4-3799d3902e7f
  • Loading branch information
uwe.tews@googlemail.com committed Jan 27, 2012
1 parent 5798a82 commit 840de95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions distribution/change_log.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 2 additions & 2 deletions distribution/libs/sysplugins/smarty_internal_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,8 @@ public function __get($property_name)
{
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
Expand Down

0 comments on commit 840de95

Please sign in to comment.