Skip to content

Commit

Permalink
fix lang column name retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg authored May 23, 2019
1 parent 56c0fbd commit a95e9fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model/Multilingual.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ public static function getLangColumn()
{
static::ensureDataContainerIsLoaded();

if ($GLOBALS['TL_DCA'][static::getTable()]['config']['langColumn']) {
return $GLOBALS['TL_DCA'][static::getTable()]['config']['langColumn'];
if ($GLOBALS['TL_DCA'][static::getTable()]['config']['langColumnName']) {
return $GLOBALS['TL_DCA'][static::getTable()]['config']['langColumnName'];
}

return 'language';
Expand Down

0 comments on commit a95e9fb

Please sign in to comment.