Browse Source

Settings fix

master
Egorka 6 years ago
parent
commit
767b3b9184
  1. 3
      core/behaviors/LanguageBehavior.php
  2. 1
      core/entities/Settings.php

3
core/behaviors/LanguageBehavior.php

@ -376,9 +376,6 @@ class LanguageBehavior extends Behavior
public function findTranslation($language = null) public function findTranslation($language = null)
{ {
$language = $language ?: $this->defaultLanguage; $language = $language ?: $this->defaultLanguage;
//$class = call_user_func(array($this->virtualClassName, 'getInstance'));
if (is_array($this->relativeField)) { if (is_array($this->relativeField)) {
$condition = []; $condition = [];
foreach ($this->relativeField as $field) { foreach ($this->relativeField as $field) {

1
core/entities/Settings.php

@ -15,7 +15,6 @@ use core\behaviors\LanguageBehavior;
* @property string $type * @property string $type
* @property string $section * @property string $section
* @property string $key * @property string $key
* @property string $value
* @property integer $active * @property integer $active
* @property integer $created_at * @property integer $created_at
* @property integer $updated_at * @property integer $updated_at

Loading…
Cancel
Save