Skip to content

Commit

Permalink
Add __DIR__ to HtmlToEnml converter to make it usable if PWD is outsi…
Browse files Browse the repository at this point in the history
…de Converter directory
  • Loading branch information
artpi committed Dec 15, 2019
1 parent c24d691 commit 51c378a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Evernote/Enml/Converter/HtmlToEnmlConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function convertToEnml($content, $base_url = null)
$content = $this->cleanHtml($content);

//Transform to ENML via XSLT
$enml_body = $this->xslTransform($content, 'html2enml.xslt');
$enml_body = $this->xslTransform($content, __DIR__ . '/html2enml.xslt');

$enml = <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
Expand Down

0 comments on commit 51c378a

Please sign in to comment.