Permalink
Browse files

# [#29675] *Protostar error page tries to load search module even when

module is not published
  • Loading branch information...
infograf768 committed Nov 13, 2012
1 parent a3d79b2 commit c58349d39e089b924e785e04bbdd4c34378e9436
Showing with 9 additions and 6 deletions.
  1. +1 −0 installation/CHANGELOG
  2. +8 −6 templates/protostar/error.php
View
@@ -28,6 +28,7 @@ $ -> Language fix or change
13-Nov-2012 Jean-Marie Simonet
#$ [#29669] Consistent form validation notifications. Thanks Roland
+ # [#29675] *Protostar error page tries to load search module even when module is not published
11-Nov-2012 Jean-Marie Simonet
# [#29569] *Implementing accordeons for Modules Options
@@ -169,12 +169,14 @@
</ul>
</div>
<div class="span6">
- <p><strong><?php echo JText::_('JERROR_LAYOUT_SEARCH'); ?></strong></p>
- <p><?php echo JText::_('JERROR_LAYOUT_SEARCH_PAGE'); ?></p>
- <?php
- $module = JModuleHelper::getModule('search');
- echo JModuleHelper::renderModule($module);
- ?>
+ <?php if (JModuleHelper::getModule('search')) : ?>
+ <p><strong><?php echo JText::_('JERROR_LAYOUT_SEARCH'); ?></strong></p>
+ <p><?php echo JText::_('JERROR_LAYOUT_SEARCH_PAGE'); ?></p>
+ <?php
+ $module = JModuleHelper::getModule('search');
+ echo JModuleHelper::renderModule($module);
+ ?>
+ <?php endif; ?>
<p><?php echo JText::_('JERROR_LAYOUT_GO_TO_THE_HOME_PAGE'); ?></p>
<p><a href="<?php echo $this->baseurl; ?>/index.php" class="btn"><i class="icon-home"></i> <?php echo JText::_('JERROR_LAYOUT_HOME_PAGE'); ?></a></p>
</div>

0 comments on commit c58349d

Please sign in to comment.