Mercurial > defr > drupal > ad
diff remote/ad_remote.module @ 8:32c1a7d9e1fa ad tip
maj module ad en 2.1
author | sly |
---|---|
date | Fri, 11 Sep 2009 11:10:20 +0000 |
parents | 948362c2a207 |
children |
line wrap: on
line diff
--- a/remote/ad_remote.module Mon Jul 20 13:54:40 2009 +0000 +++ b/remote/ad_remote.module Fri Sep 11 11:10:20 2009 +0000 @@ -1,5 +1,5 @@ <?php -// $Id: ad_remote.module,v 1.1.4.5.2.5.2.5 2009/03/05 00:35:56 jeremy Exp $ +// $Id: ad_remote.module,v 1.1.4.5.2.5.2.6 2009/08/05 00:13:37 jeremy Exp $ /** * @file @@ -96,7 +96,7 @@ $output = '<!--'. t('start') .'-->'; // build a wrapper script which collects the url the ad is displayed on $output .= "\n<script language='JavaScript' type='text/javascript'>\n var adurl = window.location.href;\n"; - $url = ad($group, $quantity, array('hostid' => $hostid, 'div' => FALSE)); + $url = ad($group, $quantity, array('hostid' => $hostid, 'ad_display' => 'javascript')); // break up the inner script so the browser doesn't parse it $url = str_replace(array('<script', '</script>', 'u=admin/content/ad/ad_remote'), array('"<scr" + "ipt', '"+"</scr" + "ipt>"', 'u="+adurl+"'), $url); $output .= "document.write($url)\n</script>\n";