correct links in e?mail notifications

This commit is contained in:
coderkun 2014-05-27 11:46:06 +02:00
commit a08a09a9a0
7 changed files with 7 additions and 8 deletions

View file

@ -566,8 +566,7 @@
/** /**
* Send mail for new user registration. * Send mail for new user registration.
* *
* @param string $username Name of newly registered user * @param array $user Newly registered user
* @param string $email Email address of newly registered user
*/ */
private function sendRegistrationMail($user) private function sendRegistrationMail($user)
{ {

View file

@ -1,2 +1,2 @@
<?=sprintf(_('User “%s” has registered a new Character for the Seminary “%s”'), $user['username'], $seminary['title'])?>: <?=sprintf(_('User “%s” has registered a new Character for the Seminary “%s”'), $user['username'], $seminary['title'])?>:
<?php if(!is_null($linker)) : ?><a href="<?=$linker->link(array('characters',$seminary['url'],$user['url']),0,false,null,false,null,true)?>"><?=$character['name']?></a><?php else : ?><?=$character['name']?><?php endif ?> <?php if(!is_null($linker)) : ?><a href="<?=$linker->link(array('characters','character',$seminary['url'],$character['url']),0,true,null,false,null,true)?>"><?=$character['name']?></a><?php else : ?><?=$character['name']?><?php endif ?>

View file

@ -1,2 +1,2 @@
<?=sprintf(_('Character “%s” has submitted a new submission for the Quest “%s” of the Seminary “%s”'), $character['name'], $quest['title'], $seminary['title'])?>: <?=sprintf(_('Character “%s” has submitted a new submission for the Quest “%s” of the Seminary “%s”'), $character['name'], $quest['title'], $seminary['title'])?>:
<?php if(!is_null($linker)) : ?><a href="<?=$linker->link(array('quests','submission',$seminary['url'],$questgroup['url'],$quest['url'],$character['url']),0,false,null,false,null,true)?>"><?=$questgroup['title']?>/<?=$quest['title']?>/<?=$character['name']?></a><?php else : ?><?=$questgroup['title']?>/<?=$quest['title']?>/<?=$character['name']?><?php endif ?> <?php if(!is_null($linker)) : ?><a href="<?=$linker->link(array('quests','submission',$seminary['url'],$questgroup['url'],$quest['url'],$character['url']),0,true,null,false,null,true)?>"><?=$seminary['title']?>/<?=$questgroup['title']?>/<?=$quest['title']?>/<?=$character['name']?></a><?php else : ?><?=$seminary['title']?>/<?=$questgroup['title']?>/<?=$quest['title']?>/<?=$character['name']?><?php endif ?>

View file

@ -1,2 +1,2 @@
<?=_('A new user has been registered')?>: <?=_('A new user has been registered')?>:
<?php if(!is_null($linker)) : ?><a href="<?=$linker->link(array('users',$user['url']),0,true,null,false,null,true)?>"><?=$user['username']?></a><?php else : ?><?=$user['username']?><?php endif ?> <?php if(!is_null($linker)) : ?><a href="<?=$linker->link(array('users','user',$user['url']),0,true,null,false,null,true)?>"><?=$user['username']?></a><?php else : ?><?=$user['username']?><?php endif ?>

View file

@ -1,3 +1,3 @@
<?=sprintf(_('User “%s” has registered a new Character for the Seminary “%s”'), $user['username'], $seminary['title'])?>: <?=$character['name']?> <?=sprintf(_('User “%s” has registered a new Character for the Seminary “%s”'), $user['username'], $seminary['title'])?>: <?=$character['name']?>
<?php if(!is_null($linker)) : ?><?=$linker->link(array('characters',$seminary['url'],$user['url']),0,false,null,false,null,true)?><?php endif ?> <?php if(!is_null($linker)) : ?><?=$linker->link(array('characters','character',$seminary['url'],$character['url']),0,true,null,false,null,true)?><?php endif ?>

View file

@ -1,2 +1,2 @@
<?=sprintf(_('Character “%s” has submitted a new submission for the Quest “%s” of the Seminary “%s”'), $character['name'], $quest['title'], $seminary['title'])?>. <?=sprintf(_('Character “%s” has submitted a new submission for the Quest “%s” of the Seminary “%s”'), $character['name'], $quest['title'], $seminary['title'])?>.
<?php if(!is_null($linker)) : ?><?=$linker->link(array('quests','submission',$seminary['url'],$questgroup['url'],$quest['url'],$character['url']),0,false,null,false,null,true)?><?php endif ?> <?php if(!is_null($linker)) : ?><?=$linker->link(array('quests','submission',$seminary['url'],$questgroup['url'],$quest['url'],$character['url']),0,true,null,false,null,true)?><?php endif ?>

View file

@ -1,3 +1,3 @@
<?=_('A new user has been registered')?>: <?=$user['username']?> <?=_('A new user has been registered')?>: <?=$user['username']?>
<?php if(!is_null($linker)) : ?><?=$linker->link(array('users',$user['url']),0,false,null,false,null,true)?><?php endif ?> <?php if(!is_null($linker)) : ?><?=$linker->link(array('users','user',$user['url']),0,true,null,false,null,true)?><?php endif ?>