[livejournal] r21391: LJSUP-11511: pass product id parameter t...
Committer: vad
LJSUP-11511: pass product id parameter to tack this frameU trunk/htdocs/tools/embedcontent.bml
Modified: trunk/htdocs/tools/embedcontent.bml
===================================================================
--- trunk/htdocs/tools/embedcontent.bml 2012-03-13 10:35:27 UTC (rev 21390)
+++ trunk/htdocs/tools/embedcontent.bml 2012-03-13 10:59:43 UTC (rev 21391)
@@ -15,8 +15,9 @@
return LJ::Maps->get_iframe_source(%GET);
} elsif ($mode eq 'tackthis'){
##
- my $api = $GET{api};
- return qq|<script src="http://www.tackthis.com/widget-validate-iframe.php?api=$api" type="text/javascript"></script>|;
+ my $api = $GET{api};
+ my $pid_arg = $GET{pid} ? "&pid=$GET{pid}" : ""; ## display specified product id
+ return qq|<script src="http://www.tackthis.com/widget-validate-iframe.php?api=$api$pid_arg" type="text/javascript"></script>|;
} elsif ($mode eq 'lj-embed') {
# we should have three GET params: journalid, moduleid, auth_token
