Commit 979545ee4ece6f2ead1f051c5cf6d36b92606abe

Authored by Anastasia
1 parent 96689a9f

- address

common/models/Settings.php
@@ -214,9 +214,9 @@ @@ -214,9 +214,9 @@
214 /** 214 /**
215 * @return \yii\db\ActiveQuery 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 \ No newline at end of file 223 \ No newline at end of file
frontend/views/site/contact.php
@@ -58,8 +58,8 @@ JS; @@ -58,8 +58,8 @@ JS;
58 <h3>Address</h3> 58 <h3>Address</h3>
59 <p> 59 <p>
60 <?php 60 <?php
61 - if (!empty( $settings->lang->address )) {  
62 - echo $settings->lang->address; 61 + if (!empty( $settings->language->address )) {
  62 + echo $settings->language->address;
63 } 63 }
64 ?> 64 ?>
65 </p> 65 </p>