@@ -58,7 +58,7 @@ trait AnnounceControllerBase extends ControllerBase {
5858
5959 try {
6060 mailer.sendBcc(bcc, form.subject, form.content, Some (html), context.loginAccount)
61- flash += " info" -> " Announce has been sent."
61+ flash.update( " info" , " Announce has been sent." )
6262 } catch {
6363 case t : EmailException => {
6464 t.getCause match {
@@ -74,21 +74,21 @@ trait AnnounceControllerBase extends ControllerBase {
7474 logger.error(" email not sent to: {}" , ua.toString())
7575 }
7676 }
77- flash += " info" -> " Announce has been sent."
77+ flash.update( " info" , " Announce has been sent." )
7878 }
7979 case _ => {
8080 logger.error(" failure sending email" , t)
81- flash += " info" -> " Announce cannot be sent, verify log errors."
81+ flash.update( " info" , " Announce cannot be sent, verify log errors." )
8282 }
8383 }
8484 }
8585 case e : Exception => {
8686 logger.error(" unexpected exception while sending email" , e)
87- flash += " info" -> " Announce cannot be sent, verify log errors."
87+ flash.update( " info" , " Announce cannot be sent, verify log errors." )
8888 }
8989 }
9090 } else {
91- flash += " info" -> " Announce cannot be sent, verify SMTP settings"
91+ flash.update( " info" , " Announce cannot be sent, verify SMTP settings" )
9292 }
9393
9494 redirect(" /admin/announce" )
0 commit comments