From 4b9ebe81e4757b568a77636b30f0812ab8825222 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Mon, 11 Mar 2024 02:07:30 +0300 Subject: [PATCH] WebAssetManager from DI --- com_oauthserver/administrator/tmpl/client/edit.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/com_oauthserver/administrator/tmpl/client/edit.php b/com_oauthserver/administrator/tmpl/client/edit.php index e1a53d3..7fb2d23 100644 --- a/com_oauthserver/administrator/tmpl/client/edit.php +++ b/com_oauthserver/administrator/tmpl/client/edit.php @@ -7,6 +7,7 @@ * @license MIT; see LICENSE.txt **/ +use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\LayoutHelper; @@ -18,8 +19,8 @@ defined('_JEXEC') or die; * @var \Webmasterskaya\Component\OauthServer\Administrator\View\Client\HtmlView $this */ -$wa = $this->document->getWebAssetManager(); -$wa->useScript('keepalive') +Factory::getApplication()->getDocument()->getWebAssetManager() + ->useScript('keepalive') ->useScript('form.validate'); ?>