Skip to content

Commit

Permalink
MailPanel: fixed compatibility with PHP 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
JanTvrdik committed May 5, 2016
1 parent 831d01e commit b39142b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MailPanel.php
Expand Up @@ -127,7 +127,7 @@ private function getLatteEngine()

$this->latteEngine->onCompile[] = function (Latte\Engine $engine) {
$set = new Latte\Macros\MacroSet($engine->getCompiler());
$set->addMacro('link', 'echo %escape($getLink(%node.word, %node.array))');
$set->addMacro('link', 'echo %escape(call_user_func($getLink, %node.word, %node.array))');
};

$this->latteEngine->addFilter('attachmentLabel', function (MimePart $attachment) {
Expand Down

0 comments on commit b39142b

Please sign in to comment.