Skip to content

Commit

Permalink
fixed translation, redone Re::l to Yii::t
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Sep 21, 2015
1 parent e60f2da commit d286a03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ActiveQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}

0 comments on commit d286a03

Please sign in to comment.