From 0d4a94ffb65bd0f397292e83eeebd4537568e7d1 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 18 Mar 2018 12:32:39 +0200 Subject: [PATCH] Fix swal JS error --- resources/views/partials/upgrade_modal.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/partials/upgrade_modal.blade.php b/resources/views/partials/upgrade_modal.blade.php index 88d6d9aebe76..bd409a9dbba4 100644 --- a/resources/views/partials/upgrade_modal.blade.php +++ b/resources/views/partials/upgrade_modal.blade.php @@ -69,7 +69,7 @@ swal("{!! trans('texts.please_register') !!}"); return; @elseif ( ! Auth::check() || ! Auth::user()->confirmed) - swal("{!! trans('texts.confirmation_required', ['link' => link_to('/resend_confirmation', trans('texts.click_here'))]) !!}"); + swal({!! json_encode(trans('texts.confirmation_required', ['link' => link_to('/resend_confirmation', trans('texts.click_here'))])) !!}); return; @endif