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 );