<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -64,9 +64,9 @@ class plg_chout_MONEYBOOKERS_RECURRING extends base_checkout_plugin
 		if($recurr_bill_arr[0][&quot;recurr_type&quot;] == &quot;1&quot;)
 		{
 			# Pro-rate billing:
-			include_once ( PATH_MODULES . 'checkout/checkout.inc.php' );
-			$checkout = new checkout;
-			$arr = $checkout-&gt;recurrDates($recurr_bill_arr[0][&quot;recurr_schedule&quot;], $recurr_bill_arr[0][&quot;recurr_weekday&quot;], $recurr_bill_arr[0][&quot;recurr_week&quot;]);
+			include_once ( PATH_MODULES . 'product/product.inc.php' );
+			$product = new product;
+			$arr = $product-&gt;recurrDates($recurr_bill_arr[0][&quot;recurr_schedule&quot;], $recurr_bill_arr[0][&quot;recurr_weekday&quot;], $recurr_bill_arr[0][&quot;recurr_week&quot;]);
 			$rec_start_date = date(&quot;d/m/Y&quot;, $arr[&quot;end&quot;]);
 			$end = $arr[&quot;end&quot;]+(86400*365*10);
 			$rec_end_date   = date(&quot;d/m/Y&quot;, $end);</diff>
      <filename>plugins/checkout/MONEYBOOKERS_RECURRING.php</filename>
    </modified>
    <modified>
      <diff>@@ -77,9 +77,9 @@ class plg_chout_PAYPAL_RECURRING extends base_checkout_plugin
 		if($recurr_bill_arr[0][&quot;recurr_type&quot;] == &quot;1&quot;)
 		{
 			# Pro-rate billing:
-			include_once ( PATH_MODULES . 'checkout/checkout.inc.php' );
-			$checkout = new checkout;
-			$arr = $checkout-&gt;recurrDates($recurr_bill_arr[0][&quot;recurr_schedule&quot;], $recurr_bill_arr[0][&quot;recurr_weekday&quot;], $recurr_bill_arr[0][&quot;recurr_week&quot;]);
+			include_once ( PATH_MODULES . 'product/product.inc.php' );
+			$product = new product;
+			$arr = $product-&gt;recurrDates($recurr_bill_arr[0][&quot;recurr_schedule&quot;], $recurr_bill_arr[0][&quot;recurr_weekday&quot;], $recurr_bill_arr[0][&quot;recurr_week&quot;]);
 			$remain_time = $arr['end'] - time();
 			$period1 	 = round($remain_time/86400);
 			$subscr_date = date(&quot;Y-m-d&quot;, $arr[&quot;end&quot;]);</diff>
      <filename>plugins/checkout/PAYPAL_RECURRING.php</filename>
    </modified>
    <modified>
      <diff>@@ -90,9 +90,9 @@ class plg_chout_WORLDPAY_FUTUREPAY extends base_checkout_plugin
 		if($recurr_bill_arr[0][&quot;recurr_type&quot;] == &quot;1&quot;)
 		{
 			# Pro-rate billing:
-			include_once ( PATH_MODULES . 'checkout/checkout.inc.php' );
-			$checkout = new checkout;
-			$arr = $checkout-&gt;recurrDates($recurr_bill_arr[0][&quot;recurr_schedule&quot;], $recurr_bill_arr[0][&quot;recurr_weekday&quot;], $recurr_bill_arr[0][&quot;recurr_week&quot;]);
+			include_once ( PATH_MODULES . 'product/product.inc.php' );
+			$product = new product;
+			$arr = $product-&gt;recurrDates($recurr_bill_arr[0][&quot;recurr_schedule&quot;], $recurr_bill_arr[0][&quot;recurr_weekday&quot;], $recurr_bill_arr[0][&quot;recurr_week&quot;]);
 			$remain_time = $arr['end'] - time();
 			$period1 	 = round($remain_time/86400);
 			$start_date  = date(&quot;Y-m-d&quot;, $arr[&quot;end&quot;]);</diff>
      <filename>plugins/checkout/WORLDPAY_FUTUREPAY.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a2034bfb7b3a92ba5cd3d06d3919824416ff1733</id>
    </parent>
  </parents>
  <author>
    <name>sluther</name>
    <email>sluther@bitpiston.com</email>
  </author>
  <url>http://github.com/tony-landis/agilebill/commit/7e8ee8bc5a3729ee1a5e4e2e34018baa80204365</url>
  <id>7e8ee8bc5a3729ee1a5e4e2e34018baa80204365</id>
  <committed-date>2009-10-01T16:35:52-07:00</committed-date>
  <authored-date>2009-10-01T16:35:52-07:00</authored-date>
  <message>Fixed a bug with recurring subscriptions</message>
  <tree>78c6a0d93421562e4ebb922dbb88a0f14fe09bb5</tree>
  <committer>
    <name>sluther</name>
    <email>sluther@bitpiston.com</email>
  </committer>
</commit>
