From b983dcbcfe634d1782e9b90fb3879e6446d277ec Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Sat, 27 Feb 2021 10:38:38 +0300 Subject: [PATCH] use unminified CSS in debug mode --- .../com_jedchecker/views/uploads/tmpl/default.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/administrator/components/com_jedchecker/views/uploads/tmpl/default.php b/administrator/components/com_jedchecker/views/uploads/tmpl/default.php index 13d678c..e04a44e 100644 --- a/administrator/components/com_jedchecker/views/uploads/tmpl/default.php +++ b/administrator/components/com_jedchecker/views/uploads/tmpl/default.php @@ -24,6 +24,8 @@ else // Load jQuery JHtml::_('jquery.framework'); +$cssSuffix = JDEBUG ? '.css' : '.min.css'; + // Load Bootstrap if (version_compare(JVERSION, '4.0', '>=')) { @@ -32,11 +34,11 @@ if (version_compare(JVERSION, '4.0', '>=')) } else { - JHtml::stylesheet('media/com_jedchecker/css/j4-style.min.css'); + JHtml::stylesheet('media/com_jedchecker/css/j4-style' . $cssSuffix); JHtml::script('media/com_jedchecker/js/bootstrap.min.js'); } -JHtml::stylesheet('media/com_jedchecker/css/style.min.css'); +JHtml::stylesheet('media/com_jedchecker/css/style' . $cssSuffix); JHtml::script('media/com_jedchecker/js/script.js'); // List of rules