Commit 532a5337fc5ac7ad77665d16df330f30ed102794
1 parent
20377270
objects other
Showing
3 changed files
with
4 additions
and
4 deletions
Show diff stats
frontend/views/layouts/main.php
@@ -627,7 +627,7 @@ | @@ -627,7 +627,7 @@ | ||
627 | Yii::$app->controller->action->id === $controller->defaultAction || | 627 | Yii::$app->controller->action->id === $controller->defaultAction || |
628 | Yii::$app->controller->action->id === 'search' | 628 | Yii::$app->controller->action->id === 'search' |
629 | ){ | 629 | ){ |
630 | - echo (isset($this->params['h1']) && !empty($this->params['h1'])) ? | 630 | + echo (isset($this->params['h1'])) ? |
631 | $this->params['h1'] : | 631 | $this->params['h1'] : |
632 | "put \$this->params['h1'] in " . Yii::$app->controller->id . "/" . Yii::$app->controller->action->id . " view file"; | 632 | "put \$this->params['h1'] in " . Yii::$app->controller->id . "/" . Yii::$app->controller->action->id . " view file"; |
633 | } | 633 | } |
frontend/views/object/view.php
frontend/views/site/legal.php
@@ -15,8 +15,8 @@ use yii\web\View; | @@ -15,8 +15,8 @@ use yii\web\View; | ||
15 | MapAsset::register($this); | 15 | MapAsset::register($this); |
16 | $settings = Settings::getInstance(); | 16 | $settings = Settings::getInstance(); |
17 | 17 | ||
18 | -$this->params['h1'] = \Yii::t('app', 'menu-legal'); | ||
19 | -$this->params[ 'breadcrumbs' ][] = $this->params['h1']; | 18 | +$this->params['h1'] = ""; |
19 | +$this->params[ 'breadcrumbs' ][] = \Yii::t('app', 'menu-legal'); | ||
20 | 20 | ||
21 | $js = <<< JS | 21 | $js = <<< JS |
22 | window.lat = {$settings->lat}; | 22 | window.lat = {$settings->lat}; |