@@ -17,12 +17,12 @@ class Parse
1717 * @param string $str String to parse
1818 * @param array $variables Variables to use
1919 * @param array $context Contextual variables to also use
20- * @param bool $php Whether PHP should be allowed
20+ * @param bool $trusted Whether the template should be treated as trusted
2121 * @return string
2222 */
23- public function template ($ str , $ variables = [], $ context = [], $ php = false )
23+ public function template ($ str , $ variables = [], $ context = [], $ trusted = false )
2424 {
25- return Antlers::parse ($ str , $ variables , $ context , $ php );
25+ return Antlers::parse ($ str , array_merge ( $ variables , $ context) , $ trusted );
2626 }
2727
2828 /**
@@ -32,12 +32,12 @@ public function template($str, $variables = [], $context = [], $php = false)
3232 * @param array $data Variables to use, in a multidimensional array
3333 * @param bool $supplement Whether to supplement with contextual values
3434 * @param array $context Contextual variables to also use
35- * @param bool $php Whether PHP should be allowed
35+ * @param bool $trusted Whether the template should be treated as trusted
3636 * @return string
3737 */
38- public function templateLoop ($ content , $ data , $ supplement = true , $ context = [], $ php = false )
38+ public function templateLoop ($ content , $ data , $ supplement = true , $ context = [], $ trusted = false )
3939 {
40- return Antlers::parseLoop ($ content , $ data , $ supplement , $ context , $ php );
40+ return Antlers::parseLoop ($ content , $ data , $ supplement , $ context , $ trusted );
4141 }
4242
4343 /**
0 commit comments