Skip to content

Commit

Permalink
[4.0] Fixing multilingual sample data en-GB items creation (#27179)
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 authored and wilsonge committed Nov 30, 2019
1 parent 75590d4 commit a49712d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/sampledata/multilang/multilang.php
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,13 @@ protected function getInstalledlangs($cms_client = 'administrator')

foreach ($langlist as $lang)
{
$file = $path . '/' . $lang . '/' . $lang . '.xml';
$file = $path . '/' . $lang . '/' . $lang . '.xml';

if (!is_file($file))
{
$file = $path . '/' . $lang . '/langmetadata.xml';
}

$info = Installer::parseXMLInstallFile($file);
$row = new stdClass;
$row->language = $lang;
Expand Down

0 comments on commit a49712d

Please sign in to comment.