From d7f904c1834fe1a7d2988773a0da3d002662ebef Mon Sep 17 00:00:00 2001 From: Serreau Jovann Date: Fri, 10 Apr 2026 10:11:49 +0200 Subject: [PATCH] Fix FTL crash when realm has i18n disabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guard locale references with null-safe defaults — the master realm ships with internationalization off, so locale is undefined and ${locale.currentLanguageTag} threw InvalidReferenceException. Co-Authored-By: Claude Opus 4.6 (1M context) --- themes/ecosplay/login/template.ftl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/ecosplay/login/template.ftl b/themes/ecosplay/login/template.ftl index b47ebd6..2883c58 100644 --- a/themes/ecosplay/login/template.ftl +++ b/themes/ecosplay/login/template.ftl @@ -1,6 +1,6 @@ <#macro registrationLayout bodyClass="" displayInfo=false displayMessage=true displayRequiredFields=false showAnotherWayIfPresent=true> - + @@ -95,7 +95,7 @@ - <#if realm.internationalizationEnabled && locale.supported?size gt 1> + <#if realm.internationalizationEnabled?? && realm.internationalizationEnabled && locale?? && locale.supported?? && locale.supported?size gt 1>
// Langue <#list locale.supported as l>