diff options
-rw-r--r-- | lib/Travelynx/Helper/Sendmail.pm | 2 | ||||
-rw-r--r-- | templates/layouts/default.html.ep | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index 51bc25f..fa8dacf 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -21,7 +21,7 @@ <nav class="deep-purple"> <div class="nav-wrapper container"> - <a href="/" class="brand-logo left"><%= $ENV{TRAVELYNX_DB_NAME} eq 'travelynx_dev' ? 'develynx' : 'travelynx' %></a> + <a href="/" class="brand-logo left"><%= $ENV{TRAVELYNX_DB_NAME} =~ m{travelynx_dev} ? 'develynx' : 'travelynx' %></a> <ul id="nav-mobile" class="right"> % if (is_user_authenticated()) { <li class="<%= navbar_class('/history') %>"><a href='/history' title="History"><i class="material-icons">history</i></a></li> |