Browse code

viewEngines static call -> dynamic call fix

RafaƂ Szklarczyk authored on 12/06/2019 10:51:40
Showing 1 changed files
... ...
@@ -72,7 +72,7 @@ class View{
72 72
     }
73 73
 
74 74
     public function render(){
75
-        if ($viewEngineClass = $this->_L3->viewEngines::get($this->viewFileExtension)){
75
+        if ($viewEngineClass = $this->_L3->viewEngines->get($this->viewFileExtension)){
76 76
             $view = new $viewEngineClass();
77 77
             return $view->render($this->viewFile, $this->context);
78 78
         }