aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/namespace/Template/Template.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/namespace/Template/Template.php b/core/namespace/Template/Template.php
index 0c68f92..158bcd2 100644
--- a/core/namespace/Template/Template.php
+++ b/core/namespace/Template/Template.php
@@ -60,9 +60,7 @@ class Template {
# Return parsed template content
#===============================================================================
public function __toString() {
- foreach($this->parameters as $name => $value) {
- ${$name} = $value;
- }
+ extract($this->parameters);
ob_start();
require $this->filename;