set linker for Text- and HTML-mails
This commit is contained in:
parent
36597d7b84
commit
082f38ef49
4 changed files with 8 additions and 6 deletions
|
|
@ -34,8 +34,8 @@
|
|||
parent::preFilter($request, $response);
|
||||
|
||||
|
||||
// Set application URL
|
||||
$this->set('url', \nre\configs\AppConfig::$app['url']);
|
||||
// Set linker
|
||||
$this->set('linker', ($request instanceof \hhu\z\requests\MailRequest && !is_null($request->getLinker())) ? $request->getLinker() : null);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@
|
|||
parent::preFilter($request, $response);
|
||||
|
||||
|
||||
// Set application URL
|
||||
$this->set('url', \nre\configs\AppConfig::$app['url']);
|
||||
// Set linker
|
||||
$this->set('linker', ($request instanceof \hhu\z\requests\MailRequest && !is_null($request->getLinker())) ? $request->getLinker() : null);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@
|
|||
<?=$intermediate?>
|
||||
</p>
|
||||
|
||||
<p>– <a href="<?=$url?>"><?=$appname?></a></p>
|
||||
<p>–
|
||||
<?php if(!is_null($linker)) : ?><a href="<?=$linker->link(array(),0,true,null,false,null,true)?>"><?=$appname?></a><?php else : ?><?=$appname?><?php endif ?>
|
||||
</p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@
|
|||
|
||||
– <?=$appname?>
|
||||
|
||||
<?=$url?>
|
||||
<?php if(!is_null($linker)) : ?><?=$linker->link(array(),0,true,null,false,null,true)?><?php endif ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue