diff --git a/e107_admin/lancheck.php b/e107_admin/lancheck.php index 4076424a0..913a57627 100644 --- a/e107_admin/lancheck.php +++ b/e107_admin/lancheck.php @@ -913,12 +913,23 @@ class lancheck return false; } - foreach($rawData['language'] as $val) + foreach($rawData['language'] as $key => $att) { - $att = $val['@attributes']; + // issue #3059 Language list didn't load + if ($key != '@attributes') continue; $id = $att['name']; + // fix github double url bug... + if (stripos($att['url'], 'https://github.comhttps://github.com') !== false) + { + $att['url'] = str_ireplace('https://github.comhttps://github.com', 'https://github.com', $att['url']); + } + if (stripos($att['infourl'], 'https://github.comhttps://github.com') !== false) + { + $att['infourl'] = str_ireplace('https://github.comhttps://github.com', 'https://github.com', $att['infourl']); + } + $languages[$id] = array( 'name' => $att['name'], 'author' => $att['author'],