[Fusionforge-commits] r8274 - trunk/gforge/www/news/admin

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Oct 14 21:30:24 CEST 2009


Author: aljeux
Date: 2009-10-14 21:30:24 +0200 (Wed, 14 Oct 2009)
New Revision: 8274

Modified:
   trunk/gforge/www/news/admin/index.php
Log:
No email notification if news is deleted

Modified: trunk/gforge/www/news/admin/index.php
===================================================================
--- trunk/gforge/www/news/admin/index.php	2009-10-14 19:30:16 UTC (rev 8273)
+++ trunk/gforge/www/news/admin/index.php	2009-10-14 19:30:24 UTC (rev 8274)
@@ -87,6 +87,9 @@
 				$feedback .= _('Error On Update:');
 			} else {
 				$feedback .= _('NewsByte Updated.');
+				// No notification if news is deleted.
+				if ($status != 4)
+					send_news_notification_email($id);
 			}
 			/*
 				Show the list_queue
@@ -251,6 +254,9 @@
 		if (db_numrows($result) < 1) {
 			exit_error(_('Error'), _('NewsByte not found'));
 		}
+		if (db_result($result,0,'is_approved') == 4) {
+			exit_error(_('Error'), _('NewsByte deleted'));
+		}
 		
 		$group =& group_get_object(db_result($result,0,'group_id'));
 		$user =& user_get_object(db_result($result,0,'submitted_by'));




More information about the Fusionforge-commits mailing list