Skip to content

Commit

Permalink
allowed Transphporm to accept raw XML (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettw authored and gjerokrsteski committed Sep 11, 2017
1 parent eff439a commit d85537a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/Pimf/View/Transphporm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand Down

0 comments on commit d85537a

Please sign in to comment.