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 /demo | |
| 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 'demo')
| -rw-r--r-- | demo/plugins/resource.extendsall.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/demo/plugins/resource.extendsall.php b/demo/plugins/resource.extendsall.php index 500b3c86..f9f3263c 100644 --- a/demo/plugins/resource.extendsall.php +++ b/demo/plugins/resource.extendsall.php @@ -23,7 +23,7 @@ class Smarty_Resource_Extendsall extends Smarty_Internal_Resource_Extends $uid = ''; $sources = array(); $exists = true; - foreach ($_template->smarty->getTemplateDir() as $key => $directory) { + foreach ($source->smarty->getTemplateDir() as $key => $directory) { try { $s = Smarty_Resource::source(null, $source->smarty, '[' . $key . ']' . $source->name); if (!$s->exists) { @@ -38,9 +38,7 @@ class Smarty_Resource_Extendsall extends Smarty_Internal_Resource_Extends if (!$sources) { $source->exists = false; - $source->template = $_template; - - return; + return; } $sources = array_reverse($sources, true); @@ -52,9 +50,7 @@ class Smarty_Resource_Extendsall extends Smarty_Internal_Resource_Extends $source->uid = sha1($uid); $source->exists = $exists; if ($_template && $_template->smarty->compile_check) { - $source->timestamp = $s->timestamp; + $source->timestamp = $s->getTimeStamp(); } - // need the template at getContent() - $source->template = $_template; } } |
