diff --git a/administrator/components/com_jedchecker/views/uploads/tmpl/default.php b/administrator/components/com_jedchecker/views/uploads/tmpl/default.php index 2007f9e..8c2aeca 100644 --- a/administrator/components/com_jedchecker/views/uploads/tmpl/default.php +++ b/administrator/components/com_jedchecker/views/uploads/tmpl/default.php @@ -11,38 +11,26 @@ defined('_JEXEC') or die('Restricted access'); -// Load Joomla framework -if (version_compare(JVERSION, '3.3.0', '>=')) -{ - JHtml::_('behavior.core'); -} -else -{ - JHtml::_('behavior.framework', true); -} - // Load jQuery JHtml::_('jquery.framework'); -$cssSuffix = JDEBUG ? '.css' : '.min.css'; - // Load Bootstrap if (version_compare(JVERSION, '4.0', '>=')) { JHtml::_('bootstrap.collapse'); JHtml::_('bootstrap.tab'); - // Tooltips are used by JAMSS reports + // Tooltips are used by JAMSS reports JHtml::_('bootstrap.tooltip'); } else { - JHtml::stylesheet('media/com_jedchecker/css/j4-style' . $cssSuffix); - JHtml::script('media/com_jedchecker/js/bootstrap.bundle.min.js'); + JHtml::_('stylesheet', 'com_jedchecker/j4-style.css', array('version' => 'auto', 'relative' => true)); + JHtml::_('script', 'com_jedchecker/bootstrap.bundle.min.js', array('version' => 'auto', 'relative' => true), array('defer' => true)); } -JHtml::stylesheet('media/com_jedchecker/css/style' . $cssSuffix); -JHtml::script('media/com_jedchecker/js/script.js'); +JHtml::_('stylesheet', 'com_jedchecker/style.css', array('version' => 'auto', 'relative' => true)); +JHtml::_('script', 'com_jedchecker/script.js', array('version' => 'auto', 'relative' => true), array('defer' => true)); ?>
@@ -72,8 +60,7 @@ JHtml::script('media/com_jedchecker/js/script.js'); -