From 618fbe9b359ddae57afb9797e7b683ab875965d6 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 28 Dec 2018 13:08:17 +0100 Subject: [PATCH] Fix logon_page in Elastic (and Elastic-based) skins (Bifrost#T168440) --- plugins/logon_page/logon_page.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/logon_page/logon_page.php b/plugins/logon_page/logon_page.php index 4247a36e..6e00a15a 100644 --- a/plugins/logon_page/logon_page.php +++ b/plugins/logon_page/logon_page.php @@ -51,6 +51,7 @@ class logon_page extends rcube_plugin if (file_exists($file)) { $html = file_get_contents($file); + $html = trim(str_replace('', '', $html)); } if ($html) { @@ -63,6 +64,9 @@ class logon_page extends rcube_plugin // so it can be styled by skins $html = '
' . $html . '
'; + // In Elastic we have to move the element to more apropriate place + $html .= ""; + // Add the content at the end of the BODY $rcmail->output->add_footer($html); }