Skip to content

Commit

Permalink
Merge pull request terminal42#55 from fritzmg/patch-3
Browse files Browse the repository at this point in the history
fix lang column name retrieval
  • Loading branch information
richardhj authored May 31, 2019
2 parents 390b12d + a95e9fb commit 8811dcb
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 @@ -134,8 +134,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 8811dcb

Please sign in to comment.