diff options
| author | Uwe Tews <uwe.tews@googlemail.com> | 2015-07-06 03:25:03 +0200 |
|---|---|---|
| committer | Uwe Tews <uwe.tews@googlemail.com> | 2015-07-06 03:25:03 +0200 |
| commit | b1fdc085e7401edf8c33ac2f2a7d7183e12cc764 (patch) | |
| tree | de51efc0c3d3e8b269adab9969c419bf778c16f8 /libs/sysplugins/smarty_internal_resource_registered.php | |
| parent | b198e6488c3d80e4d990deb08f61c23946fe02b6 (diff) | |
| download | smarty-b1fdc085e7401edf8c33ac2f2a7d7183e12cc764.tar.gz smarty-b1fdc085e7401edf8c33ac2f2a7d7183e12cc764.tar.bz2 smarty-b1fdc085e7401edf8c33ac2f2a7d7183e12cc764.zip | |
- optimization get rid of __get and __set in source object
Diffstat (limited to 'libs/sysplugins/smarty_internal_resource_registered.php')
| -rw-r--r-- | libs/sysplugins/smarty_internal_resource_registered.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/sysplugins/smarty_internal_resource_registered.php b/libs/sysplugins/smarty_internal_resource_registered.php index f7175dd9..69b396b6 100644 --- a/libs/sysplugins/smarty_internal_resource_registered.php +++ b/libs/sysplugins/smarty_internal_resource_registered.php @@ -76,12 +76,13 @@ class Smarty_Internal_Resource_Registered extends Smarty_Resource public function getContent(Smarty_Template_Source $source) { // return template string - $t = call_user_func_array($source->smarty->registered_resources[$source->type][0][0], array($source->name, &$source->content, $source->smarty)); + $content = null; + $t = call_user_func_array($source->smarty->registered_resources[$source->type][0][0], array($source->name, &$content, $source->smarty)); if (is_bool($t) && !$t) { throw new SmartyException("Unable to read template {$source->type} '{$source->name}'"); } - return $source->content; + return $content; } /** |
