mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	issue splash message
This commit is contained in:
		
							parent
							
								
									9ed96e2a2a
								
							
						
					
					
						commit
						477d1a69b8
					
				|  | @ -100,6 +100,7 @@ if ($action == "delnotify"){ | |||
| 			UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error")); | ||||
| 			break; | ||||
| 		case 0: | ||||
| 			$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_rm_notify'))); | ||||
| 			// Email user / group, informing them of subscription change.
 | ||||
| 			if($notifier) { | ||||
| 				$notifier->sendDeleteFolderNotifyMail($folder, $user, $obj); | ||||
|  | @ -111,6 +112,7 @@ if ($action == "delnotify"){ | |||
| // add notification
 | ||||
| else if ($action == "addnotify") { | ||||
| 
 | ||||
| 	/* Both $userid and $groupid can be set */ | ||||
| 	if ($userid > 0) { | ||||
| 		$res = $document->addNotify($userid, true); | ||||
| 		switch ($res) { | ||||
|  | @ -127,12 +129,11 @@ else if ($action == "addnotify") { | |||
| 				UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error")); | ||||
| 				break; | ||||
| 			case 0: | ||||
| 				// Email user / group, informing them of subscription.
 | ||||
| 				$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_add_notify'))); | ||||
| 				if ($notifier){ | ||||
| 					$obj = $dms->getUser($userid); | ||||
| 					$notifier->sendNewDocumentNotifyMail($document, $user, $obj); | ||||
| 				} | ||||
| 
 | ||||
| 				break; | ||||
| 		} | ||||
| 	} | ||||
|  | @ -152,6 +153,7 @@ else if ($action == "addnotify") { | |||
| 				UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("internal_error")); | ||||
| 				break; | ||||
| 			case 0: | ||||
| 				$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_add_notify'))); | ||||
| 				if ($notifier){ | ||||
| 					$obj = $dms->getGroup($groupid); | ||||
| 					$notifier->sendNewDocumentNotifyMail($document, $user, $obj); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann