Fix width/height issue with previewing entries with embedded content.
Patch by afuna.
diffs (16 lines):
diff -r 3e9319ca0b5b -r db6144ecb314 cgi-bin/LJ/EmbedModule.pm
--- a/cgi-bin/LJ/EmbedModule.pm Thu Jan 07 05:36:58 2010 +0000
+++ b/cgi-bin/LJ/EmbedModule.pm Thu Jan 07 05:46:47 2010 +0000
@@ -235,10 +235,10 @@ sub module_iframe_tag {
my $journalid = $u->userid;
$moduleid += 0;
+ my $preview = $opts{preview};
# parse the contents of the module and try to come up with a guess at the
width and height of the content
- my $content = $class->module_content(moduleid => $moduleid, journalid =>
$journalid);
- my $preview = $opts{preview};
+ my $content = $class->module_content( moduleid => $moduleid, journalid =>
$journalid, preview => $preview );
my $width = 0;
my $height = 0;
my $p = HTML::TokeParser->new(\$content);
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog