Skip to content

Commit

Permalink
Bugfix for debug.css location in Joomla 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
hexplor committed May 16, 2023
1 parent 17044c9 commit eebd1ae
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions engines/joomla/nucleus/twig/partials/page_head.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,16 @@
{% endif %}
{% endif %}

{% if gantry.debug %}
<link rel="stylesheet" href="{{ url('media/cms/css/debug.css') }}" type="text/css" />
{% if gantry.theme.joomla %}
{% if gantry.platform.checkVersion(4) %}
{# Joomla 4.x #}
<link rel="stylesheet" href="{{ url('media/system/css/debug.css') }}" type="text/css"/>
{% elseif gantry.platform.checkVersion(3) %}
{# Joomla 3.x #}
{% if gantry.debug %}
<link rel="stylesheet" href="{{ url('media/cms/css/debug.css') }}" type="text/css"/>
{% endif %}
{% endif %}
{% endif %}
{%- endblock %}

Expand Down

0 comments on commit eebd1ae

Please sign in to comment.