From 18c58ec1789a72a7f74e4e18d5884a9589c859a0 Mon Sep 17 00:00:00 2001 From: Christian Heel <66922325+heelc29@users.noreply.github.com> Date: Mon, 24 Feb 2025 19:13:05 +0100 Subject: [PATCH 1/2] [5.3] Use WebAsset for installation --- installation/tmpl/preinstall/default.php | 2 +- installation/tmpl/remove/default.php | 2 +- installation/tmpl/setup/default.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/installation/tmpl/preinstall/default.php b/installation/tmpl/preinstall/default.php index 6a19e70924fd6..d0582efa3ac69 100644 --- a/installation/tmpl/preinstall/default.php +++ b/installation/tmpl/preinstall/default.php @@ -12,7 +12,7 @@ use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; -HTMLHelper::_('behavior.formvalidator'); +$this->getDocument()->getWebAssetManager()->useScript('form.validate'); /** @var \Joomla\CMS\Installation\View\Preinstall\HtmlView $this */ ?> diff --git a/installation/tmpl/remove/default.php b/installation/tmpl/remove/default.php index 14268f908e7b1..9a67637d1afdf 100644 --- a/installation/tmpl/remove/default.php +++ b/installation/tmpl/remove/default.php @@ -13,7 +13,7 @@ use Joomla\CMS\Language\Text; use Joomla\CMS\Uri\Uri; -HTMLHelper::_('behavior.formvalidator'); +$this->getDocument()->getWebAssetManager()->useScript('form.validate'); /** @var \Joomla\CMS\Installation\View\Remove\HtmlView $this */ ?> diff --git a/installation/tmpl/setup/default.php b/installation/tmpl/setup/default.php index 9b6978d193017..b21a665e3e031 100644 --- a/installation/tmpl/setup/default.php +++ b/installation/tmpl/setup/default.php @@ -13,7 +13,7 @@ use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; -HTMLHelper::_('behavior.formvalidator'); +$this->getDocument()->getWebAssetManager()->useScript('form.validate'); /** @var \Joomla\CMS\Installation\View\Setup\HtmlView $this */ ?> From b4ea4d280a059b71ebb265fa5b53dc206dd9fbc1 Mon Sep 17 00:00:00 2001 From: Christian Heel <66922325+heelc29@users.noreply.github.com> Date: Tue, 25 Feb 2025 17:39:34 +0100 Subject: [PATCH 2/2] no_unused_imports Co-Authored-By: Richard Fath --- installation/tmpl/preinstall/default.php | 1 - 1 file changed, 1 deletion(-) diff --git a/installation/tmpl/preinstall/default.php b/installation/tmpl/preinstall/default.php index d0582efa3ac69..c628407153eee 100644 --- a/installation/tmpl/preinstall/default.php +++ b/installation/tmpl/preinstall/default.php @@ -9,7 +9,6 @@ defined('_JEXEC') or die; -use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; $this->getDocument()->getWebAssetManager()->useScript('form.validate');