Don't display hidden language tracks in legend
This commit is contained in:
parent
9da34728cc
commit
a4f8e714b8
|
@ -350,7 +350,10 @@ function parseData($config, $data) {
|
||||||
// Create the legend
|
// Create the legend
|
||||||
$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>';
|
$legend .= '<tr><td class="' . $track['css_class'] . '">' . $track['name'][$config['lang']] . '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue