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

[livejournal] r21392: LJSUP-11455: bad view variable mediaplac...

Committer: amyshkin
LJSUP-11455: bad view variable mediaplaceholder.loading in russian
U   trunk/cgi-bin/cleanhtml.pl
Modified: trunk/cgi-bin/cleanhtml.pl
===================================================================
--- trunk/cgi-bin/cleanhtml.pl	2012-03-13 10:59:43 UTC (rev 21391)
+++ trunk/cgi-bin/cleanhtml.pl	2012-03-13 11:55:36 UTC (rev 21392)
@@ -496,14 +496,28 @@
                     # XHTML style open/close tags done as a singleton shouldn't actually
                     # start a capture loop, because there won't be a close tag.
                     if ($attr->{'/'}) {
-                        $newdata .= LJ::run_hook("transform_embed", [$token],
-                                                 nocheck => $transform_embed_nocheck, wmode => $transform_embed_wmode, video_placeholders => $opts->{video_placeholders}, remove_video_sizes => $opts->{remove_video_sizes}) || "";
+                        $newdata .= LJ::run_hook(
+                            "transform_embed",
+                            [$token],
+                            nocheck            => $transform_embed_nocheck,
+                            wmode              => $transform_embed_wmode,
+                            video_placeholders => $opts->{video_placeholders},
+                            remove_video_sizes => $opts->{remove_video_sizes},
+                            no_encode          => $opts->{no_encode},
+                        ) || "";
                         next TOKEN;
                     }
 
                     $start_capture->($tag, $token, sub {
-                        my $expanded = LJ::run_hook("transform_embed", \@capture,
-                                                    nocheck => $transform_embed_nocheck, wmode => $transform_embed_wmode, video_placeholders => $opts->{video_placeholders}, remove_video_sizes => $opts->{remove_video_sizes});
+                        my $expanded = LJ::run_hook(
+                            "transform_embed",
+                            \@capture,
+                            nocheck            => $transform_embed_nocheck,
+                            wmode              => $transform_embed_wmode,
+                            video_placeholders => $opts->{video_placeholders},
+                            remove_video_sizes => $opts->{remove_video_sizes},
+                            no_encode          => $opts->{no_encode},
+                        );
                         $newdata .= $expanded || "";
                     });
                     next TOKEN;
@@ -2126,6 +2140,7 @@
         'video_placeholders' => $opts->{'video_placeholders'},
         'remove_img_sizes'   => $opts->{'remove_img_sizes'},
         'remove_video_sizes' => $opts->{'remove_video_sizes'},
+        'no_encode'          => $opts->{'no_encode'},
     });
 }
 

Tags: amyshkin, livejournal, 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