summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Helper/Sendmail.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-06 21:21:35 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-06 21:21:35 +0200
commit4e7f7a1d0e4c87f38ec0c494ab4850f706eed16b (patch)
tree9af6e3d840b5c92e60ba5015c0007f8f467f6a67 /lib/Travelynx/Helper/Sendmail.pm
parentb93c06dc402c854b0503db2355a06009e2a2140f (diff)
detect development mode for travelynx_dev* databases0.11
Diffstat (limited to 'lib/Travelynx/Helper/Sendmail.pm')
-rw-r--r--lib/Travelynx/Helper/Sendmail.pm2
1 files changed, 1 insertions, 1 deletions
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;