summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authoruwetews <uwe.tews@googlemail.com>2015-12-24 02:29:21 +0100
committeruwetews <uwe.tews@googlemail.com>2015-12-24 02:29:21 +0100
commit297f47a15ad95340d8663e54caa6328aa81e1333 (patch)
tree6d57042888bee4c8f25799fcde64525f995dec53 /demo
parent9d0865aaf8e0657c8a2a05545d0985a3a3ba5476 (diff)
downloadsmarty-297f47a15ad95340d8663e54caa6328aa81e1333.tar.gz
smarty-297f47a15ad95340d8663e54caa6328aa81e1333.tar.bz2
smarty-297f47a15ad95340d8663e54caa6328aa81e1333.zip
- new feature Compiler does now observe the template_dir setting and will create separate compiled files if required
Diffstat (limited to 'demo')
-rw-r--r--demo/plugins/resource.extendsall.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/demo/plugins/resource.extendsall.php b/demo/plugins/resource.extendsall.php
index 5f55d44b..a5ee432d 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();
$timestamp = 0;
- foreach ($_template->smarty->getTemplateDir() as $key => $directory) {
+ foreach ($source->smarty->getTemplateDir() as $key => $directory) {
try {
$s = Smarty_Resource::source(null, $source->smarty, 'file:' . '[' . $key . ']' . $source->name);
if (!$s->exists) {
@@ -46,7 +46,7 @@ class Smarty_Resource_Extendsall extends Smarty_Internal_Resource_Extends
$s = current($sources);
$source->components = $sources;
$source->filepath = $s->filepath;
- $source->uid = sha1($uid . $_template->smarty->_joined_template_dir);
+ $source->uid = sha1($uid . $source->smarty->_joined_template_dir);
$source->exists = true;
$source->timestamp = $timestamp;
}