From d286a03e239fd016e6afed097532edbf378ac682 Mon Sep 17 00:00:00 2001 From: Andrii Vasyliev Date: Mon, 21 Sep 2015 16:25:17 +0000 Subject: [PATCH] fixed translation, redone Re::l to Yii::t --- src/ActiveQuery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ActiveQuery.php b/src/ActiveQuery.php index 13aee7a..93c6de5 100644 --- a/src/ActiveQuery.php +++ b/src/ActiveQuery.php @@ -11,7 +11,7 @@ namespace hiqdev\hiart; -use hipanel\base\Re; +use Yii; use yii\db\ActiveQueryInterface; use yii\db\ActiveQueryTrait; use yii\db\ActiveRelationTrait; @@ -247,6 +247,6 @@ public function getList($as_array = true, $db = null, $options = []) $result = $result ?: []; // return $this->createCommand($db)->getList($options); - return $as_array ? ArrayHelper::map($result, 'gl_key', function ($o) { return Re::l($o->gl_value); }) : $result; + return $as_array ? ArrayHelper::map($result, 'gl_key', function ($o) { return Yii::t('app', $o->gl_value); }) : $result; } }