[livejournal] r23132: LJSUP-13929: Tackthis beta server
Committer: vad
LJSUP-13929: Tackthis beta serverU trunk/htdocs/tools/embedcontent.bml
Modified: trunk/htdocs/tools/embedcontent.bml
===================================================================
--- trunk/htdocs/tools/embedcontent.bml 2012-10-15 07:34:55 UTC (rev 23131)
+++ trunk/htdocs/tools/embedcontent.bml 2012-10-15 09:10:45 UTC (rev 23132)
@@ -18,8 +18,10 @@
my $api = $GET{api};
my $pid_arg = $GET{pid} ? "&pid=$GET{pid}" : ""; ## display specified product id
my $cat_arg = $GET{cid} ? "&cid=$GET{cid}" : ""; ## category id
- return qq|<script src="http://www.tackthis.com/widget-validate-iframe.php?api=$api$pid_arg$cat_arg" type="text/javascript"></script>|;
+ my $server = $GET{server} eq 'beta' ? 'beta.tackthis.com' : 'www.tackthis.com';
+ return qq|<script src="http://$server/widget-validate-iframe.php?api=$api$pid_arg$cat_arg" type="text/javascript"></script>|;
+
} elsif ($mode eq 'lj-embed') {
# we should have three GET params: journalid, moduleid, auth_token
my $journalid = $GET{journalid}+0 or return "No journalid specified";
