Skip to content

Commit 8a4cffc

Browse files
-
1 parent 290ba04 commit 8a4cffc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.env.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ APP_SECRET=fda41e68dccbce19b1829cb12cc5d89f
1919
###< symfony/framework-bundle ###
2020

2121
###> symfony/mailer ###
22-
MAILER_DSN=smtp://replace
22+
MAILER_DSN=null://null
2323
###< symfony/mailer ###
2424

2525
###> app ###

src/Controller/AppSubscriptionsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function create(Request $request, string $type): Response
7272
}
7373

7474
if (AppSubscriptionModel::TYPE_EMAIL == $type) {
75-
if ('smtp://replace' == $this->mailerDsn || '' == $this->senderAddress) {
75+
if ('null://null' == $this->mailerDsn || '' == $this->senderAddress) {
7676
$this->addFlash('warning', 'Edit MAILER_DSN and SENDER_ADDRESS in .env file');
7777

7878
throw new AccessDeniedException();

templates/Modules/subscription/subscription_tabs.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a class="nav-link text-light dropdown-toggle{% if 'create_subscription_' in active %} active bg-dark{% endif %}" data-bs-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">{{ 'create_subscription'|trans }}</a>
99
<div class="dropdown-menu dropdown-menu-dark">
1010
<a class="dropdown-item{% if 'create_subscription_push' == active %} active bg-dark{% endif %}" href="{{ path('app_subscriptions_create', {'type': 'push'}) }}">{{ 'create_subscription_push'|trans }}{% if false == app.request.isSecure or false == applicationServerKey %}{{ appImport.badge({'title': 'disabled'|trans, 'context': 'warning'}) }}{% endif %}</a>
11-
<a class="dropdown-item{% if 'create_subscription_email' == active %} active bg-dark{% endif %}" href="{{ path('app_subscriptions_create', {'type': 'email'}) }}">{{ 'create_subscription_email'|trans }}{% if 'smtp://replace' == mailerDsn %}{{ appImport.badge({'title': 'disabled'|trans, 'context': 'warning'}) }}{% endif %}</a>
11+
<a class="dropdown-item{% if 'create_subscription_email' == active %} active bg-dark{% endif %}" href="{{ path('app_subscriptions_create', {'type': 'email'}) }}">{{ 'create_subscription_email'|trans }}{% if 'null://null' == mailerDsn %}{{ appImport.badge({'title': 'disabled'|trans, 'context': 'warning'}) }}{% endif %}</a>
1212
<a class="dropdown-item{% if 'create_subscription_slack' == active %} active bg-dark{% endif %}" href="{{ path('app_subscriptions_create', {'type': 'slack'}) }}">{{ 'create_subscription_slack'|trans }}</a>
1313
<a class="dropdown-item{% if 'create_subscription_teams' == active %} active bg-dark{% endif %}" href="{{ path('app_subscriptions_create', {'type': 'teams'}) }}">{{ 'create_subscription_teams'|trans }}</a>
1414
</div>

0 commit comments

Comments
 (0)