From 96dad08db7e2c9c67041c6b07bc3be574ad51624 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 11 Oct 2019 13:51:07 +0200 Subject: [PATCH] Fix option ADD_UNSPLASH_LOGIN_BACKGROUND --- htdocs/admin/ihm.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php index 03b36d9472d..edf3e4dbe86 100644 --- a/htdocs/admin/ihm.php +++ b/htdocs/admin/ihm.php @@ -408,7 +408,13 @@ if (1 == 1) // Edit // Background print ''; print '
'; - print ''; + $disabled = ''; + if (! empty($conf->global->ADD_UNSPLASH_LOGIN_BACKGROUND)) $disabled = ' disabled="disabled"'; + print ''; + if ($disabled) + { + print '('.$langs->trans("DisabledByOptionADD_UNSPLASH_LOGIN_BACKGROUND").') '; + } if (! empty($conf->global->MAIN_LOGIN_BACKGROUND)) { print ''.img_delete($langs->trans("Delete")).''; if (file_exists($conf->mycompany->dir_output.'/logos/'.$conf->global->MAIN_LOGIN_BACKGROUND)) {