Skip to content

Commit

Permalink
fixes #14
Browse files Browse the repository at this point in the history
  • Loading branch information
lajax committed Apr 5, 2015
1 parent 1134751 commit d423540
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ class Module extends \yii\base\Module {
*/
public $tables;

/**
* @var string The database table storing the languages.
*/
public $languageTable = 'language';

/**
* @inheritdoc
*/
Expand Down
3 changes: 2 additions & 1 deletion models/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ class Language extends \yii\db\ActiveRecord {
* @inheritdoc
*/
public static function tableName() {
return 'language';
return Yii::$app->getModule('translatemanager') ?
Yii::$app->getModule('translatemanager')->languageTable : 'language';
}

/**
Expand Down

0 comments on commit d423540

Please sign in to comment.