diff --git a/components/com_modules/Controller/DisplayController.php b/components/com_modules/Controller/DisplayController.php index 674404a36cb21..db595b3ea98b8 100644 --- a/components/com_modules/Controller/DisplayController.php +++ b/components/com_modules/Controller/DisplayController.php @@ -12,6 +12,8 @@ use Joomla\CMS\MVC\Controller\BaseController; use Joomla\CMS\MVC\Factory\MVCFactoryInterface; +use Joomla\CMS\HTML\HTMLHelper; +use Joomla\CMS\Factory; /** * Modules manager master display controller. @@ -34,12 +36,12 @@ class DisplayController extends BaseController */ public function __construct($config = array(), MVCFactoryInterface $factory = null, $app = null, $input = null) { - $this->input = \JFactory::getApplication()->input; + $this->input = Factory::getApplication()->input; // Modules frontpage Editor Module proxying: if ($this->input->get('view') === 'modules' && $this->input->get('layout') === 'modal') { - \JHtml::_('stylesheet', 'system/adminlist.css', array('version' => 'auto', 'relative' => true)); + HTMLHelper::_('stylesheet', 'system/adminlist.css', array('version' => 'auto', 'relative' => true)); $config['base_path'] = JPATH_COMPONENT_ADMINISTRATOR; }