mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
This commit is contained in:
@@ -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)
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user