diff options
author | Thomas Lange <code@nerdmind.de> | 2017-02-27 01:54:36 +0100 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-02-27 01:54:36 +0100 |
commit | aa71020958cfdff2bdbdf3da0eb0c77acfff7419 (patch) | |
tree | 130201235eb98bf4d3af7d245bee445d1ed37989 /core/namespace | |
parent | 0df554ec193c0842f0e1db89a1d99358facd40c5 (diff) | |
download | blog-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')
-rw-r--r-- | core/namespace/Template/Template.php | 4 |
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; |