Skip to content

Commit

Permalink
strict fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 26, 2017
1 parent f268490 commit 3c9a289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Bridges/ApplicationLatte/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Loader extends Latte\Loaders\FileLoader

public function __construct(Nette\Application\UI\Presenter $presenter)
{
parent::__construct();
$this->presenter = $presenter;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Bridges/ApplicationLatte/UIMacros.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function macroControl(MacroNode $node, PhpWriter $writer)
public function macroLink(MacroNode $node, PhpWriter $writer)
{
$node->modifiers = preg_replace('#\|safeurl\s*(?=\||\z)#i', '', $node->modifiers);
return $writer->using($node, $this->getCompiler())
return $writer->using($node)
->write('echo %escape(%modify('
. ($node->name === 'plink' ? '$this->global->uiPresenter' : '$this->global->uiControl')
. '->link(%node.word, %node.array?)))'
Expand Down

0 comments on commit 3c9a289

Please sign in to comment.