Committer: amyshkin
LJSUP-10691: Image placeholders in commentsU trunk/cgi-bin/ljcom.pl
Modified: trunk/cgi-bin/ljcom.pl =================================================================== --- trunk/cgi-bin/ljcom.pl 2012-02-06 09:25:05 UTC (rev 11408) +++ trunk/cgi-bin/ljcom.pl 2012-02-06 10:54:39 UTC (rev 11409) @@ -1742,16 +1742,13 @@ "<embed src=\"$eurl\" type=\"$content_type\" width=\"$width\" height=\"$height\" $other_tags $whitelist_tags allowScriptAccess=\"never\"></embed>" . "</object>"; - if ($remote) { - my $holder = $remote->prop('opt_embedplaceholders'); - if ($holder && $holder ne 'N') { - $embed = LJ::placeholder_link( - placeholder_html => $embed, - width => $width, - height => $height, - img => "$LJ::IMGPREFIX/videoplaceholder.png", - ); - } + if ( $opts{'video_placeholders'} ) { + $embed = LJ::placeholder_link( + placeholder_html => $embed, + width => $width, + height => $height, + img => "$LJ::IMGPREFIX/videoplaceholder.png", + ); } return $embed;