mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
- check for new config options
This commit is contained in:
parent
95670174ca
commit
4a81d73995
|
@ -116,6 +116,7 @@ foreach ($pIndRev as $p) {
|
|||
switch ($res) {
|
||||
case 0:
|
||||
// Send an email notification to the new reviewer.
|
||||
if($settings->_enableNotificationAppRev) {
|
||||
if ($notifier) {
|
||||
$subject = "###SITENAME###: ".$document->getName().", v.".$content->_version." - ".getMLText("review_request_email");
|
||||
$message = getMLText("review_request_email")."\r\n";
|
||||
|
@ -126,11 +127,9 @@ foreach ($pIndRev as $p) {
|
|||
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
|
||||
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."&version=".$content->_version."\r\n";
|
||||
|
||||
// $subject=mydmsDecodeString($subject);
|
||||
// $message=mydmsDecodeString($message);
|
||||
|
||||
$notifier->toIndividual($user, $docAccess["users"][$accessIndex["i"][$p]], $subject, $message);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case -1:
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
|
||||
|
@ -173,6 +172,7 @@ if (count($reviewIndex["i"]) > 0) {
|
|||
switch ($res) {
|
||||
case 0:
|
||||
// Send an email notification to the reviewer.
|
||||
if($settings->_enableNotificationAppRev) {
|
||||
if ($notifier) {
|
||||
$subject = "###SITENAME###: ".$document->getName().", v.".$content->_version." - ".getMLText("review_deletion_email");
|
||||
$message = getMLText("review_deletion_email")."\r\n";
|
||||
|
@ -183,11 +183,9 @@ if (count($reviewIndex["i"]) > 0) {
|
|||
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
|
||||
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
|
||||
|
||||
// $subject=mydmsDecodeString($subject);
|
||||
// $message=mydmsDecodeString($message);
|
||||
|
||||
$notifier->toIndividual($user, $docAccess["users"][$accessIndex["i"][$rx]], $subject, $message);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case -1:
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
|
||||
|
@ -218,6 +216,7 @@ foreach ($pGrpRev as $p) {
|
|||
switch ($res) {
|
||||
case 0:
|
||||
// Send an email notification to the new reviewer.
|
||||
if($settings->_enableNotificationAppRev) {
|
||||
if ($notifier) {
|
||||
$subject = "###SITENAME###: ".$document->getName().", v.".$content->_version." - ".getMLText("review_request_email");
|
||||
$message = getMLText("review_request_email")."\r\n";
|
||||
|
@ -228,11 +227,9 @@ foreach ($pGrpRev as $p) {
|
|||
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
|
||||
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."&version=".$content->_version."\r\n";
|
||||
|
||||
// $subject=mydmsDecodeString($subject);
|
||||
// $message=mydmsDecodeString($message);
|
||||
|
||||
$notifier->toGroup($user, $docAccess["groups"][$accessIndex["g"][$p]], $subject, $message);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case -1:
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
|
||||
|
@ -272,6 +269,7 @@ if (count($reviewIndex["g"]) > 0) {
|
|||
switch ($res) {
|
||||
case 0:
|
||||
// Send an email notification to the review group.
|
||||
if($settings->_enableNotificationAppRev) {
|
||||
if ($notifier) {
|
||||
|
||||
$subject = "###SITENAME###: ".$document->getName().", v.".$content->_version." - ".getMLText("review_deletion_email");
|
||||
|
@ -283,11 +281,9 @@ if (count($reviewIndex["g"]) > 0) {
|
|||
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
|
||||
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
|
||||
|
||||
// $subject=mydmsDecodeString($subject);
|
||||
// $message=mydmsDecodeString($message);
|
||||
|
||||
$notifier->toGroup($user, $docAccess["groups"][$accessIndex["g"][$rx]], $subject, $message);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case -1:
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
|
||||
|
@ -323,6 +319,7 @@ foreach ($pIndApp as $p) {
|
|||
switch ($res) {
|
||||
case 0:
|
||||
// Send an email notification to the new approver.
|
||||
if($settings->_enableNotificationAppRev) {
|
||||
if ($overallStatus["status"]!=0 && $notifier) {
|
||||
$subject = "###SITENAME###: ".$document->getName().", v.".$content->_version." - ".getMLText("approval_request_email");
|
||||
$message = getMLText("approval_request_email")."\r\n";
|
||||
|
@ -333,11 +330,9 @@ foreach ($pIndApp as $p) {
|
|||
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
|
||||
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."&version=".$content->_version."\r\n";
|
||||
|
||||
// $subject=mydmsDecodeString($subject);
|
||||
// $message=mydmsDecodeString($message);
|
||||
|
||||
$notifier->toIndividual($user, $docAccess["users"][$accessIndex["i"][$p]], $subject, $message);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case -1:
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
|
||||
|
@ -378,6 +373,7 @@ if (count($approvalIndex["i"]) > 0) {
|
|||
switch ($res) {
|
||||
case 0:
|
||||
// Send an email notification to the approver.
|
||||
if($settings->_enableNotificationAppRev) {
|
||||
if ($notifier) {
|
||||
$subject = "###SITENAME###: ".$document->getName().", v.".$content->_version." - ".getMLText("approval_deletion_email");
|
||||
$message = getMLText("approval_deletion_email")."\r\n";
|
||||
|
@ -388,11 +384,9 @@ if (count($approvalIndex["i"]) > 0) {
|
|||
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
|
||||
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
|
||||
|
||||
// $subject=mydmsDecodeString($subject);
|
||||
// $message=mydmsDecodeString($message);
|
||||
|
||||
$notifier->toIndividual($user, $docAccess["users"][$accessIndex["i"][$rx]], $subject, $message);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case -1:
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
|
||||
|
@ -423,6 +417,7 @@ foreach ($pGrpApp as $p) {
|
|||
switch ($res) {
|
||||
case 0:
|
||||
// Send an email notification to the new approver.
|
||||
if($settings->_enableNotificationAppRev) {
|
||||
if ($overallStatus["status"]!=0 && $notifier) {
|
||||
$subject = "###SITENAME###: ".$document->getName().", v.".$content->_version." - ".getMLText("approval_request_email");
|
||||
$message = getMLText("approval_request_email")."\r\n";
|
||||
|
@ -433,11 +428,9 @@ foreach ($pGrpApp as $p) {
|
|||
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
|
||||
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."&version=".$content->_version."\r\n";
|
||||
|
||||
// $subject=mydmsDecodeString($subject);
|
||||
// $message=mydmsDecodeString($message);
|
||||
|
||||
$notifier->toGroup($user, $docAccess["groups"][$accessIndex["g"][$p]], $subject, $message);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case -1:
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
|
||||
|
@ -478,6 +471,7 @@ if (count($approvalIndex["g"]) > 0) {
|
|||
switch ($res) {
|
||||
case 0:
|
||||
// Send an email notification to the approval group.
|
||||
if($settings->_enableNotificationAppRev) {
|
||||
if ($notifier) {
|
||||
|
||||
$subject = "###SITENAME###: ".$document->getName().", v.".$content->_version." - ".getMLText("approval_deletion_email");
|
||||
|
@ -489,11 +483,9 @@ if (count($approvalIndex["g"]) > 0) {
|
|||
getMLText("user").": ".$user->getFullName()." <". $user->getEmail() .">\r\n".
|
||||
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
|
||||
|
||||
// $subject=mydmsDecodeString($subject);
|
||||
// $message=mydmsDecodeString($message);
|
||||
|
||||
$notifier->toGroup($user, $docAccess["groups"][$accessIndex["g"][$rx]], $subject, $message);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case -1:
|
||||
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error"));
|
||||
|
|
Loading…
Reference in New Issue
Block a user