summaryrefslogtreecommitdiffstats
path: root/core/namespace/Template
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-02-27 01:54:36 +0100
committerThomas Lange <code@nerdmind.de>2017-02-27 01:54:36 +0100
commitaa71020958cfdff2bdbdf3da0eb0c77acfff7419 (patch)
tree130201235eb98bf4d3af7d245bee445d1ed37989 /core/namespace/Template
parent0df554ec193c0842f0e1db89a1d99358facd40c5 (diff)
downloadblog-aa71020958cfdff2bdbdf3da0eb0c77acfff7419.tar.gz
blog-aa71020958cfdff2bdbdf3da0eb0c77acfff7419.tar.xz
blog-aa71020958cfdff2bdbdf3da0eb0c77acfff7419.zip
Foreach loop was replaced by a single function called "extract".
Diffstat (limited to 'core/namespace/Template')
-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;