@@ -51,7 +51,8 @@ discard block |
||
51 | 51 | <?php endif; ?> |
52 | 52 | <?= Html::encode(Yii::t('lav45/logger', $values)) ?> |
53 | 53 | </li> |
54 | - <?php else: ?> |
|
54 | + <?php else { |
|
55 | + : ?> |
|
55 | 56 | <li> |
56 | 57 | <?= Yii::t('lav45/logger', '<strong>{attribute}</strong> has been changed', ['attribute' => Html::encode($attribute)]) ?> |
57 | 58 | |
@@ -61,6 +62,8 @@ discard block |
||
61 | 62 | <?= Html::encode(Yii::t('lav45/logger', 'to')) ?> |
62 | 63 | <strong><i class="details-text"><?= $values->getNewValue() ?></i></strong> |
63 | 64 | </li> |
64 | - <?php endif; ?> |
|
65 | + <?php endif; |
|
66 | +} |
|
67 | +?> |
|
65 | 68 | <?php endforeach; ?> |
66 | 69 | </ul> |
@@ -75,7 +75,7 @@ |
||
75 | 75 | if (is_callable($this->template)) { |
76 | 76 | return call_user_func($this->template); |
77 | 77 | } |
78 | - $callback = function ($matches) { |
|
78 | + $callback = function($matches) { |
|
79 | 79 | return ArrayHelper::getValue($this->owner, $matches[1]); |
80 | 80 | }; |
81 | 81 | return preg_replace_callback('/\\{([\w\._]+)\\}/', $callback, $this->template); |