Don't display hidden language tracks in legend

This commit is contained in:
Ivaylo Markov 2020-11-05 23:00:18 +02:00
parent 9da34728cc
commit a4f8e714b8
1 changed files with 4 additions and 1 deletions

View File

@ -350,7 +350,10 @@ function parseData($config, $data) {
// Create the legend
$legend = '';
foreach($data['tracks'] as $track) {
foreach($data['tracks'] as $track_id => $track) {
if ( in_array($track_id, $config['hidden_language_tracks'])) {
continue;
}
$legend .= '<tr><td class="' . $track['css_class'] . '">' . $track['name'][$config['lang']] . '</td></tr>';
}