From 75f3296ccc4ccfae3d31b054f3a1cbf9f8997fd1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Feb 2026 02:03:34 +0000 Subject: [PATCH] Changes before error encountered Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com> --- src/templates/offline.php | 42 +++++++++++++-------------------------- 1 file changed, 14 insertions(+), 28 deletions(-) diff --git a/src/templates/offline.php b/src/templates/offline.php index f2cef85..6cfb8b4 100644 --- a/src/templates/offline.php +++ b/src/templates/offline.php @@ -79,40 +79,26 @@ $displayOfflineMessage = (int) $app->get('display_offline_message', 1); // 0|1|2 $offlineMessage = trim((string) $app->get('offline_message', '')); /* ----------------------- - Brand (mutually exclusive: logoFile OR siteTitle) + Brand: logo from params OR siteTitle (matches index.php) ------------------------ */ -if ($params->get('logoFile')) { - $logo = HTMLHelper::_( +$brandHtml = ''; +$logoFile = (string) $params->get('logoFile'); + +if ($logoFile !== '') { + $brandHtml = HTMLHelper::_( 'image', - Uri::root(false) . htmlspecialchars((string) $params->get('logoFile'), ENT_QUOTES, 'UTF-8'), + Uri::root(false) . htmlspecialchars($logoFile, ENT_QUOTES, 'UTF-8'), $sitename, - [ - 'class' => 'logo d-inline-block', - 'loading' => 'eager', - 'decoding' => 'async', - 'style' => 'max-height:64px;height:auto;width:auto;' - ], + ['class' => 'logo d-inline-block', 'loading' => 'eager', 'decoding' => 'async'], false, 0 ); -} elseif ($params->get('siteTitle')) { - $logo = '' - . htmlspecialchars((string) $params->get('siteTitle'), ENT_COMPAT, 'UTF-8') - . ''; } else { - $logo = HTMLHelper::_( - 'image', - 'full_logo.png', - $sitename, - [ - 'class' => 'logo d-inline-block', - 'loading' => 'eager', - 'decoding' => 'async', - 'style' => 'max-height:64px;height:auto;width:auto;' - ], - true, - 0 - ); + // If no logo file, show the title (defaults to "MokoCassiopeia" if not set) + $siteTitle = $params->get('siteTitle', 'MokoCassiopeia'); + $brandHtml = '' + . htmlspecialchars($siteTitle, ENT_COMPAT, 'UTF-8') + . ''; } $brandTagline = (string) ($params->get('brand_tagline') ?: $params->get('siteDescription') ?: ''); @@ -206,7 +192,7 @@ if (class_exists('\Joomla\Component\Users\Site\Helper\RouteHelper')) { - +