set recipient in notification mails

This commit is contained in:
Uwe Steinmann 2016-10-05 12:17:20 +02:00
parent efc11d4236
commit 7597cb1c74

View File

@ -123,6 +123,7 @@ foreach ($pIndRev as $p) {
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->_version;
$params['comment'] = $content->getComment();
$params['recipient'] = $accessIndex["i"][$p]->getFullName();
$params['username'] = $user->getFullName();
$params['url'] = "http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'].$settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
$params['sitename'] = $settings->_siteName;
@ -183,6 +184,7 @@ if (count($receiptIndex["i"]) > 0) {
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->_version;
$params['comment'] = $content->getComment();
$params['recipient'] = $accessIndex["i"][$p]->getFullName();
$params['username'] = $user->getFullName();
$params['url'] = "http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'].$settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
$params['sitename'] = $settings->_siteName;
@ -230,6 +232,7 @@ foreach ($pGrpRev as $p) {
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->_version;
$params['comment'] = $content->getComment();
$params['recipient'] = $accessIndex["g"][$p]->getName();
$params['username'] = $user->getFullName();
$params['url'] = "http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'].$settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
$params['sitename'] = $settings->_siteName;
@ -286,6 +289,7 @@ if (count($receiptIndex["g"]) > 0) {
$params['folder_path'] = $folder->getFolderPathPlain();
$params['version'] = $content->_version;
$params['comment'] = $content->getComment();
$params['recipient'] = $accessIndex["g"][$p]->getName();
$params['username'] = $user->getFullName();
$params['url'] = "http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'].$settings->_httpRoot."out/out.ViewDocument.php?documentid=".$document->getID();
$params['sitename'] = $settings->_siteName;