Browse Source

dev 2020-11

Max F 5 năm trước cách đây
mục cha
commit
49cbaa16fc
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      src/WebApp.php

+ 2 - 1
src/WebApp.php

@@ -53,7 +53,8 @@ class WebApp extends App
 
 	public static function createTemplate($tpl_path=null, $variables=[], $layout=null, $templates_dirs=null)
 	{
-		return App::getData('app')->get('template')($tpl_path, $variables);
+		$templater = App::getData('app')->get('template');
+		return $templater($tpl_path, $variables);
 
 		// return new PhpTemplate($tpl_path, $variables, $layout, $templates_dirs);
 	}