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)
{
$language = $language ?: $this->defaultLanguage;
//$class = call_user_func(array($this->virtualClassName, 'getInstance'));
if (is_array($this->relativeField)) {
$condition = [];
foreach ($this->relativeField as $field) {

1
core/entities/Settings.php

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

Loading…
Cancel
Save