Skip to content

Commit

Permalink
Fix indenting of XSL template string
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-e committed Aug 14, 2016
1 parent 7b14181 commit 8763e77
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/class.emailtemplate.php
Expand Up @@ -184,9 +184,9 @@ public function render($layouts = Array('plain', 'html'))
foreach ($this->layouts as $type=>$layout) {
if (in_array(strtolower($type), array_map("strtolower", $layouts))) {
$xsl = '<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="/' . rawurlencode(ltrim(WORKSPACE, '/')) . '/email-templates/' . $this->getHandle() . '/' . $layout.'"/>
</xsl:stylesheet>';
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="/' . rawurlencode(ltrim(WORKSPACE, '/')) . '/email-templates/' . $this->getHandle() . '/' . $layout.'"/>
</xsl:stylesheet>';
$this->setXSL($xsl, false);
$res = $this->generate();
if ($res) {
Expand Down

0 comments on commit 8763e77

Please sign in to comment.