From 44d3552d6039b5ba3f8b715efd29948f578ccc2a Mon Sep 17 00:00:00 2001 From: Nate Date: Wed, 5 Feb 2020 20:45:39 -0700 Subject: [PATCH] Login: Automatic sizing of logo (when necessary). --- themes/default/template.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/themes/default/template.php b/themes/default/template.php index 3b3f021c72..b69dabdfd4 100644 --- a/themes/default/template.php +++ b/themes/default/template.php @@ -918,21 +918,21 @@ else { } //set the login logo width and height - if (isset($_SESSION['theme']['login_logo_weight']['text'])) { - $login_logo_weight = $_SESSION['theme']['login_logo_weight']['text']; + if (isset($_SESSION['theme']['login_logo_width']['text'])) { + $login_logo_width = $_SESSION['theme']['login_logo_width']['text']; } else { - $login_logo_weight = '300px'; + $login_logo_width = 'auto; max-width: 300px'; } if (isset($_SESSION['theme']['login_logo_height']['text'])) { $login_logo_height = $_SESSION['theme']['login_logo_height']['text']; } else { - $login_logo_height = ''; + $login_logo_height = 'auto; max-height: 300px'; } echo "
\n"; - echo "
\n"; + echo "
\n"; echo " \n"; echo "
\n"; echo "