Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

[ljcom] r11409: LJSUP-10691: Image placeholders in comme...

Committer: amyshkin
LJSUP-10691: Image placeholders in comments
U   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;

Tags: amyshkin, ljcom, pl, zilogic
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments