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 --- library/Smarty/libs/sysplugins/smarty_variable.php | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 library/Smarty/libs/sysplugins/smarty_variable.php (limited to 'library/Smarty/libs/sysplugins/smarty_variable.php') diff --git a/library/Smarty/libs/sysplugins/smarty_variable.php b/library/Smarty/libs/sysplugins/smarty_variable.php new file mode 100644 index 000000000..c1de93cb5 --- /dev/null +++ b/library/Smarty/libs/sysplugins/smarty_variable.php @@ -0,0 +1,55 @@ +value = $value; + $this->nocache = $nocache; + $this->scope = $scope; + } + + /** + * <> String conversion + * + * @return string + */ + public function __toString() + { + return (string) $this->value; + } +} + -- 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 --- library/Smarty/libs/sysplugins/smarty_variable.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'library/Smarty/libs/sysplugins/smarty_variable.php') diff --git a/library/Smarty/libs/sysplugins/smarty_variable.php b/library/Smarty/libs/sysplugins/smarty_variable.php index c1de93cb5..a6504b18f 100644 --- a/library/Smarty/libs/sysplugins/smarty_variable.php +++ b/library/Smarty/libs/sysplugins/smarty_variable.php @@ -21,25 +21,17 @@ class Smarty_Variable * @var boolean */ public $nocache = false; - /** - * the scope the variable will have (local,parent or root) - * - * @var int - */ - public $scope = Smarty::SCOPE_LOCAL; /** * create Smarty variable object * * @param mixed $value the value to assign * @param boolean $nocache if true any output of this variable will be not cached - * @param int $scope the scope the variable will have (local,parent or root) */ - public function __construct($value = null, $nocache = false, $scope = Smarty::SCOPE_LOCAL) + public function __construct($value = null, $nocache = false) { $this->value = $value; $this->nocache = $nocache; - $this->scope = $scope; } /** -- cgit v1.2.3