@@ -29,9 +29,12 @@ |
||
29 | 29 | aria-expanded="true"> |
30 | 30 | <?php if (!empty($currentLangLabel)): ?> |
31 | 31 | <?= $currentLangLabel ?> |
32 | - <?php else: ?> |
|
32 | + <?php else { |
|
33 | + : ?> |
|
33 | 34 | <?= EmailTemplatesModule::t('Language') ?> |
34 | - <?php endif; ?> |
|
35 | + <?php endif; |
|
36 | +} |
|
37 | +?> |
|
35 | 38 | <span class="caret"></span> |
36 | 39 | </button> |
37 | 40 | <ul class="dropdown-menu" aria-labelledby="email-template-languages"> |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function withTranslation($language) |
38 | 38 | { |
39 | - return $this->with(['translations' => function ($query) use ($language) { |
|
39 | + return $this->with(['translations' => function($query) use ($language) { |
|
40 | 40 | /* @var ActiveQuery $query */ |
41 | 41 | $query->andWhere(['language' => $language]); |
42 | 42 | }]); |
@@ -149,7 +149,7 @@ |
||
149 | 149 | $this->_template = $this->getModel(); |
150 | 150 | $this->_translation = $this->getTranslationModel(); |
151 | 151 | |
152 | - if ($this->processData($data)) { |
|
152 | + if ($this->processData($data)) { |
|
153 | 153 | $transaction = $this->db->beginTransaction(); |
154 | 154 | try { |
155 | 155 | $isSaved = $this->_template->insert(false); |