Index: ec_paypal/ec_paypal.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ecommerce/ec_paypal/ec_paypal.module,v
retrieving revision 1.4.2.7
diff -u -p -r1.4.2.7 ec_paypal.module
--- ec_paypal/ec_paypal.module	7 May 2009 06:19:57 -0000	1.4.2.7
+++ ec_paypal/ec_paypal.module	7 May 2009 18:02:30 -0000
@@ -751,7 +751,7 @@ function ec_paypal_wd($object, $type, $m
   ob_start();
   print_r($object);
   $output .= '<pre>'. check_plain(ob_get_clean()) .'</pre>';
-  watchdog($type, $message .'<br />'. $output, $severity, $link);
+  watchdog($type, $message .'<br />'. $output, array(), $severity, $link);
 }
 
 /**
@@ -801,7 +801,7 @@ function ec_paypal_create_receipt($respo
       $receipt->status = $status;
     }
     ec_receipt_save($receipt);
-    ec_paypal_wd($receipt, 'ec_paypal', t('Update receipt @erid', array('@erid' => $receipt->erid)), WATCHDOG_NOTICE, l(t('View'), 'store/receipt/view/'. $erid));
+    ec_paypal_wd($receipt, 'ec_paypal', t('Update receipt @erid', array('@erid' => $receipt->erid)), WATCHDOG_NOTICE, l(t('View'), 'store/receipt/'. $erid .'/view'));
   }
   else {
     $customer = ec_customer_get_by_email($response['payer_email']);
@@ -832,7 +832,7 @@ function ec_paypal_create_receipt($respo
 
     $erid = ec_receipt_create_receipt($receipt);
 
-    ec_paypal_wd($receipt, 'ec_paypal', t('Create new receipt'), WATCHDOG_NOTICE, l(t('View'), 'store/receipt/view/'. $erid));
+    ec_paypal_wd($receipt, 'ec_paypal', t('Create new receipt'), WATCHDOG_NOTICE, l(t('View'), 'store/receipt/'. $erid .'/view'));
   }
 
   return $receipt;
