Commit 979545ee4ece6f2ead1f051c5cf6d36b92606abe
1 parent
96689a9f
- address
Showing
2 changed files
with
6 additions
and
6 deletions
Show diff stats
common/models/Settings.php
... | ... | @@ -214,9 +214,9 @@ |
214 | 214 | /** |
215 | 215 | * @return \yii\db\ActiveQuery |
216 | 216 | */ |
217 | -// public function getLanguage() | |
218 | -// { | |
219 | -// return $this->hasOne(SettingsLang::className(), [ 'settings_id' => 'id' ]); | |
220 | -// } | |
217 | + public function getLanguage() | |
218 | + { | |
219 | + return $this->hasDefaultVariationRelation(); | |
220 | + } | |
221 | 221 | } |
222 | 222 | |
223 | 223 | \ No newline at end of file | ... | ... |
frontend/views/site/contact.php