From 4e7f7a1d0e4c87f38ec0c494ab4850f706eed16b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 6 Apr 2019 21:21:35 +0200 Subject: detect development mode for travelynx_dev* databases --- lib/Travelynx/Helper/Sendmail.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Travelynx/Helper') diff --git a/lib/Travelynx/Helper/Sendmail.pm b/lib/Travelynx/Helper/Sendmail.pm index 464c888..6193884 100644 --- a/lib/Travelynx/Helper/Sendmail.pm +++ b/lib/Travelynx/Helper/Sendmail.pm @@ -28,7 +28,7 @@ sub custom { body => encode( 'utf-8', $body ), ); - if ($ENV{TRAVELYNX_DB_NAME} eq 'travelynx_dev') { + if ($ENV{TRAVELYNX_DB_NAME} =~ m{travelynx_dev}) { # Do not send mail in dev mode say "sendmail to ${to}: ${subject}\n\n${body}"; return 1; -- cgit v1.2.3