diff adcache.inc @ 2:e5584a19768b ad

maj module ad
author sly
date Wed, 15 Apr 2009 07:58:32 +0000
parents 948362c2a207
children 6aeff3329e01
line wrap: on
line diff
--- a/adcache.inc	Thu Apr 02 15:28:21 2009 +0000
+++ b/adcache.inc	Wed Apr 15 07:58:32 2009 +0000
@@ -282,7 +282,7 @@
  */
 function adserve_cache_increment($action, $aid) {
   $hostid = adserve_variable('hostid');
-  _debug_echo("adserve_increment action($action) aid($aid) hostid($hostid)");
+  _debug_echo("adserve_cache_increment action($action) aid($aid) hostid($hostid)");
 
   // be sure that drupal is bootstrapped
   adserve_bootstrap();
@@ -293,7 +293,7 @@
     $extra = implode('|,|', $extra);
   }
   adserve_variable('extra', $extra);
-  _debug_echo("adserve_increment extra($extra)");
+  _debug_echo("adserve_cache_increment extra($extra)");
 
   // update statistics
   db_query("UPDATE {ad_statistics} SET count = count + 1 WHERE aid = %d AND action = '%s' AND date = %d AND adgroup = '%s' AND extra = '%s' AND hostid = '%s'", $aid, $action, date('YmdH'), adserve_variable('group'), $extra, $hostid);
@@ -463,7 +463,7 @@
     $output .= $ad;
     // increment counters
     if (adserve_variable('ad_display') == 'raw') {
-      $output .= ad_display_image($ad);
+      $output .= ad_display_image($id);
     }
     else {
       adserve_cache('increment', 'view', $id);