summaryrefslogtreecommitdiff
path: root/libs/Smarty.class.php
diff options
context:
space:
mode:
authoruwetews <uwe.tews@googlemail.com>2016-09-29 04:22:20 +0200
committeruwetews <uwe.tews@googlemail.com>2016-09-29 04:22:20 +0200
commit4de72f1acdf9bd6b31a566fa4ac182f4e0d9eca4 (patch)
tree4c0b9f9c6d739c228fc516691a6d497dfbcd7cf1 /libs/Smarty.class.php
parent5b508b7bf3fc08603b6e7096c468258d083d43a9 (diff)
downloadsmarty-4de72f1acdf9bd6b31a566fa4ac182f4e0d9eca4.tar.gz
smarty-4de72f1acdf9bd6b31a566fa4ac182f4e0d9eca4.tar.bz2
smarty-4de72f1acdf9bd6b31a566fa4ac182f4e0d9eca4.zip
- improvement new Smarty::$extends_recursion property to disable execution of {extends} in templates called by extends resource
https://github.com/smarty-php/smarty/issues/296
Diffstat (limited to 'libs/Smarty.class.php')
-rw-r--r--libs/Smarty.class.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php
index a994d7f3..3805c770 100644
--- a/libs/Smarty.class.php
+++ b/libs/Smarty.class.php
@@ -432,6 +432,14 @@ class Smarty extends Smarty_Internal_TemplateBase
*/
public $merge_compiled_includes = false;
+ /*
+ * flag for behaviour when extends: resource and {extends} tag are used simultaneous
+ * if false disable execution of {extends} in templates called by extends resource.
+ * (behaviour as versions < 3.1.28)
+ *
+ * @var boolean
+ */
+ public $extends_recursion = true;
/**
* force cache file creation
*