fix previous fix

This commit is contained in:
rolux 2012-02-19 08:10:39 +00:00
parent 51592b1e62
commit e3f2f358b8

View file

@ -794,7 +794,7 @@ pandora.getVideoOptions = function(data) {
canPlayVideo = data.editable || pandora.site.capabilities.canPlayVideo[pandora.user.level] >= data.rightslevel, canPlayVideo = data.editable || pandora.site.capabilities.canPlayVideo[pandora.user.level] >= data.rightslevel,
options = {}, options = {},
subtitlesLayer = Ox.getObject(pandora.site.layers, 'isSubtitle', true); subtitlesLayer = Ox.getObject(pandora.site.layers, 'isSubtitle', true);
options.subtitles = subtitlesLayer ? data.layers[subtitlesLayer.id].items.map(function(subtitle) { options.subtitles = subtitlesLayer ? data.layers[subtitlesLayer.id].map(function(subtitle) {
return {'in': subtitle['in'], out: subtitle.out, text: subtitle.value}; return {'in': subtitle['in'], out: subtitle.out, text: subtitle.value};
}) : []; }) : [];
options.censored = canPlayVideo ? [] options.censored = canPlayVideo ? []