From c23ce16cafb826c8bb4fe7aaf2a5525b29052b23 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 6 Dec 2015 20:12:05 +0100 Subject: update smarty library - seems to bring some performance improvement --- .../sysplugins/smarty_internal_parsetree_text.php | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 library/Smarty/libs/sysplugins/smarty_internal_parsetree_text.php (limited to 'library/Smarty/libs/sysplugins/smarty_internal_parsetree_text.php') diff --git a/library/Smarty/libs/sysplugins/smarty_internal_parsetree_text.php b/library/Smarty/libs/sysplugins/smarty_internal_parsetree_text.php new file mode 100644 index 000000000..42d5bd299 --- /dev/null +++ b/library/Smarty/libs/sysplugins/smarty_internal_parsetree_text.php @@ -0,0 +1,40 @@ +parser = $parser; + $this->data = $data; + } + + /** + * Return buffer content + * + * @return string text + */ + public function to_smarty_php() + { + return $this->data; + } +} -- cgit v1.2.3 From 26c465ad0c1d5b6801507ed190430f44ac92c672 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sun, 6 Dec 2015 21:09:58 +0100 Subject: update smarty to 3.1.28-dev which fixes a bug where changes in a template are only visible on the second pageload which is annoying for developing --- .../Smarty/libs/sysplugins/smarty_internal_parsetree_text.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'library/Smarty/libs/sysplugins/smarty_internal_parsetree_text.php') diff --git a/library/Smarty/libs/sysplugins/smarty_internal_parsetree_text.php b/library/Smarty/libs/sysplugins/smarty_internal_parsetree_text.php index 42d5bd299..b3100fa09 100644 --- a/library/Smarty/libs/sysplugins/smarty_internal_parsetree_text.php +++ b/library/Smarty/libs/sysplugins/smarty_internal_parsetree_text.php @@ -19,21 +19,21 @@ class Smarty_Internal_ParseTree_Text extends Smarty_Internal_ParseTree /** * Create template text buffer * - * @param object $parser parser object - * @param string $data text + * @param string $data text */ - public function __construct($parser, $data) + public function __construct($data) { - $this->parser = $parser; $this->data = $data; } /** * Return buffer content * + * @param \Smarty_Internal_Templateparser $parser + * * @return string text */ - public function to_smarty_php() + public function to_smarty_php(Smarty_Internal_Templateparser $parser) { return $this->data; } -- cgit v1.2.3