From 81839e0c57120ab5bf07501d022e86fabce938b6 Mon Sep 17 00:00:00 2001 From: Nerijus Zaniauskas Date: Fri, 2 Feb 2024 14:46:05 +0200 Subject: [PATCH] Show connection form --- omnisend/includes/Internal/class-connection.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/omnisend/includes/Internal/class-connection.php b/omnisend/includes/Internal/class-connection.php index ff20016..b37d792 100644 --- a/omnisend/includes/Internal/class-connection.php +++ b/omnisend/includes/Internal/class-connection.php @@ -38,6 +38,11 @@ public static function display(): void { } } + if ( ! $connected ) { + require_once __DIR__ . '/../../view/connection-form.html'; + return; + } + require_once __DIR__ . '/../../view/connection-success.html'; }