From d85537addad2ec96d1bb91c8bfc2f7561d187a17 Mon Sep 17 00:00:00 2001 From: Garrett W Date: Mon, 11 Sep 2017 14:44:06 -0500 Subject: [PATCH] allowed Transphporm to accept raw XML (#30) --- core/Pimf/View/Transphporm.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/Pimf/View/Transphporm.php b/core/Pimf/View/Transphporm.php index 926051c..c61a16a 100644 --- a/core/Pimf/View/Transphporm.php +++ b/core/Pimf/View/Transphporm.php @@ -67,11 +67,14 @@ public function __construct($template, array $data = []) */ public function reunite() { + $xml = $this->template; + $xmlpath = $this->path . '/' . $xml; + $tss = $this->data['tss']; $tsspath = $this->path . '/' . $tss; $template = new \Transphporm\Builder( - $this->path . '/' . $this->template, + (is_file($xmlpath)) ? $xmlpath : $xml, (is_file($tsspath)) ? $tsspath : $tss );