diff --git a/lib/View.php b/lib/View.php index 9a83e6e4..f1c192cc 100644 --- a/lib/View.php +++ b/lib/View.php @@ -58,7 +58,6 @@ class View } foreach (new GlobIterator($dir . '*.php') as $tplFile) { if ($tplFile->getRealPath() === $path) { - $templatesInPath = new GlobIterator(PATH . 'tpl' . DIRECTORY_SEPARATOR . '*.php'); extract($this->_variables); include $path; return;