get rid of some old code

This commit is contained in:
Uwe Steinmann 2014-07-11 08:38:05 +02:00
parent b86a52d00e
commit 48c3f24e01

View File

@ -281,7 +281,7 @@ for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){
/* Add a default notification for the owner of the document */
if($settings->_enableOwnerNotification) {
$res = $document->addNotify($user->getID(), true);
$res = $document->addNotify($user->getID(), true);
}
// Send notification to subscribers of folder.
if($notifier) {
@ -301,22 +301,6 @@ for ($file_num=0;$file_num<count($_FILES["userfile"]["tmp_name"]);$file_num++){
$notifyList['groups'][] = $dms->getGroup($approvergrpid);
}
}
/*
$subject = "###SITENAME###: ".$folder->getName()." - ".getMLText("new_document_email");
$message = getMLText("new_document_email")."\r\n";
$message .=
getMLText("name").": ".$name."\r\n".
getMLText("folder").": ".$folder->getFolderPathPlain()."\r\n".
getMLText("comment").": ".$comment."\r\n".
getMLText("comment_for_current_version").": ".$version_comment."\r\n".
"URL: ###URL_PREFIX###out/out.ViewDocument.php?documentid=".$document->getID()."\r\n";
$notifier->toList($user, $notifyList["users"], $subject, $message);
foreach ($notifyList["groups"] as $grp) {
$notifier->toGroup($user, $grp, $subject, $message);
}
*/
$subject = "new_document_email_subject";
$message = "new_document_email_body";