@@ -58,7 +58,7 @@ trait AnnounceControllerBase extends ControllerBase {
58
58
59
59
try {
60
60
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." )
62
62
} catch {
63
63
case t : EmailException => {
64
64
t.getCause match {
@@ -74,21 +74,21 @@ trait AnnounceControllerBase extends ControllerBase {
74
74
logger.error(" email not sent to: {}" , ua.toString())
75
75
}
76
76
}
77
- flash += " info" -> " Announce has been sent."
77
+ flash.update( " info" , " Announce has been sent." )
78
78
}
79
79
case _ => {
80
80
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." )
82
82
}
83
83
}
84
84
}
85
85
case e : Exception => {
86
86
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." )
88
88
}
89
89
}
90
90
} else {
91
- flash += " info" -> " Announce cannot be sent, verify SMTP settings"
91
+ flash.update( " info" , " Announce cannot be sent, verify SMTP settings" )
92
92
}
93
93
94
94
redirect(" /admin/announce" )
0 commit comments