Skip to content

Commit

Permalink
Add <main> on error page when there is a module
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzo1987 committed Jan 27, 2024
1 parent 1b2b0c1 commit b327a48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion templates/cassiopeia/error.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@
<?php if ($this->countModules('error-' . $errorCode)) : ?>
<div class="container">
<jdoc:include type="message" />
<jdoc:include type="modules" name="error-<?php echo $errorCode; ?>" style="none" />
<main>
<jdoc:include type="modules" name="error-<?php echo $errorCode; ?>" style="none" />
</main>
</div>
<?php else : ?>
<h1 class="page-header"><?php echo Text::_('JERROR_LAYOUT_PAGE_NOT_FOUND'); ?></h1>
Expand Down

0 comments on commit b327a48

Please sign in to comment.