From c61de3f8cf296424d0100cea1eef25cdaee38680 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Feb 2026 00:40:53 +0000 Subject: [PATCH] Revert language loading additions - will use Joomla core layouts Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com> --- src/templates/html/mod_articles_latest/default.php | 5 +++++ src/templates/html/mod_breadcrumbs/default.php | 5 +++++ src/templates/html/mod_cblogin/default.php | 5 +++++ src/templates/html/mod_comprofilerOnline/default.php | 5 +++++ src/templates/html/mod_login/default.php | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/src/templates/html/mod_articles_latest/default.php b/src/templates/html/mod_articles_latest/default.php index a570677..6f1540b 100644 --- a/src/templates/html/mod_articles_latest/default.php +++ b/src/templates/html/mod_articles_latest/default.php @@ -11,9 +11,14 @@ defined('_JEXEC') or die; +use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; +// Ensure module language file is loaded +$lang = Factory::getLanguage(); +$lang->load('mod_articles_latest', JPATH_SITE); + $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8'); // Add responsive wrapper class diff --git a/src/templates/html/mod_breadcrumbs/default.php b/src/templates/html/mod_breadcrumbs/default.php index 413df37..8e7cb82 100644 --- a/src/templates/html/mod_breadcrumbs/default.php +++ b/src/templates/html/mod_breadcrumbs/default.php @@ -11,8 +11,13 @@ defined('_JEXEC') or die; +use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; +// Ensure module language file is loaded +$lang = Factory::getLanguage(); +$lang->load('mod_breadcrumbs', JPATH_SITE); + $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8'); // Add responsive wrapper class diff --git a/src/templates/html/mod_cblogin/default.php b/src/templates/html/mod_cblogin/default.php index 568ee74..4011014 100644 --- a/src/templates/html/mod_cblogin/default.php +++ b/src/templates/html/mod_cblogin/default.php @@ -11,8 +11,13 @@ defined('_JEXEC') or die; +use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; +// Ensure module language file is loaded +$lang = Factory::getLanguage(); +$lang->load('mod_cblogin', JPATH_SITE); + $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8'); // Add responsive wrapper class diff --git a/src/templates/html/mod_comprofilerOnline/default.php b/src/templates/html/mod_comprofilerOnline/default.php index f595861..dac596b 100644 --- a/src/templates/html/mod_comprofilerOnline/default.php +++ b/src/templates/html/mod_comprofilerOnline/default.php @@ -11,8 +11,13 @@ defined('_JEXEC') or die; +use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; +// Ensure module language file is loaded +$lang = Factory::getLanguage(); +$lang->load('mod_comprofilerOnline', JPATH_SITE); + $moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx', ''), ENT_COMPAT, 'UTF-8'); // Add responsive wrapper class diff --git a/src/templates/html/mod_login/default.php b/src/templates/html/mod_login/default.php index 29f855c..81dd738 100644 --- a/src/templates/html/mod_login/default.php +++ b/src/templates/html/mod_login/default.php @@ -12,10 +12,15 @@ defined('_JEXEC') or die; use Joomla\CMS\Component\ComponentHelper; +use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Router\Route; +// Ensure module language file is loaded +$lang = Factory::getLanguage(); +$lang->load('mod_login', JPATH_SITE); + HTMLHelper::_('behavior.keepalive'); HTMLHelper::_('bootstrap.tooltip', '.hasTooltip');