Commit 06a9fe94c3062763ffef96f59602d9d58f4a1e03

Authored by Anastasia
1 parent 979545ee

- address

common/models/Settings.php
@@ -199,7 +199,7 @@ @@ -199,7 +199,7 @@
199 public static function getInstance() 199 public static function getInstance()
200 { 200 {
201 if (empty( self::$instance )) { 201 if (empty( self::$instance )) {
202 - self::$instance = self::find()->with('languages')->where([ 'id' => 1 ])->one(); 202 + self::$instance = self::find()->with('language')->where([ 'id' => 1 ])->one();
203 return self::$instance; 203 return self::$instance;
204 } 204 }
205 205
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->language->address )) {  
62 - echo $settings->language->address; 61 + if (!empty( $settings->address )) {
  62 + echo $settings->address;
63 } 63 }
64 ?> 64 ?>
65 </p> 65 </p>