File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 3030// Set page title
3131$ this ->setTitle ($ this ->error ->getCode () . ' - ' . htmlspecialchars ($ this ->error ->getMessage (), ENT_QUOTES , 'UTF-8 ' ));
3232
33+ // Get the error code
34+ $ errorCode = $ this ->error ->getCode ();
3335?>
3436<!DOCTYPE html>
3537<html lang="<?php echo $ this ->language ; ?> " dir="<?php echo $ this ->direction ; ?> ">
4244 <div class="error">
4345 <div id="outline">
4446 <div id="errorboxoutline">
47+ <?php if ($ this ->countModules ('error- ' . $ errorCode )): ?>
48+ <jdoc:include type="modules" name="error-<?php echo $ errorCode ; ?> " style="none" />
49+ <?php else : ?>
4550 <div id="errorboxheader"><?php echo $ this ->error ->getCode (); ?> - <?php echo htmlspecialchars ($ this ->error ->getMessage (), ENT_QUOTES , 'UTF-8 ' ); ?> </div>
4651 <div id="errorboxbody">
4752 <p><strong><?php echo Text::_ ('JERROR_LAYOUT_NOT_ABLE_TO_VISIT ' ); ?> </strong></p>
5863 <li><a href="<?php echo Uri::root (true ); ?> /index.php"><?php echo Text::_ ('JERROR_LAYOUT_HOME_PAGE ' ); ?> </a></li>
5964 </ul>
6065 <p><?php echo Text::_ ('JERROR_LAYOUT_PLEASE_CONTACT_THE_SYSTEM_ADMINISTRATOR ' ); ?> </p>
66+ <?php endif ; ?>
6167 <div id="techinfo">
6268 <p>
6369 <?php echo htmlspecialchars ($ this ->error ->getMessage (), ENT_QUOTES , 'UTF-8 ' ); ?>
9399 </div>
94100 </div>
95101 </div>
96-
97102 <jdoc:include type="modules" name="debug" style="none" />
98103</body>
99104</html>
You can’t perform that action at this time.
0 commit comments