Crumbs not shown on error messages

pull/217/head
iglocska 2013-08-01 10:21:11 +02:00
parent cc417fdb05
commit 964d39143b
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@
>
<?php
// Add locations here that should not have a breadrumb displayed
if ($this->params['action'] !== 'login'):
// If we get an error, also, we don't want the breadcrumbs shown
if ($this->params['action'] !== 'login' && $this->response->statusCode() < '400'):
?>
<div class="breadcrumb <?php echo $debugMode; ?>">
<?php echo $this->Html->getCrumbs(' > ', 'Home');?>