# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: contributions/modules/ec_paperpayments/ec_paperpayments.module
--- contributions/modules/ec_paperpayments/ec_paperpayments.module Base (1.1)
+++ contributions/modules/ec_paperpayments/ec_paperpayments.module Locally Modified (Based On 1.1)
@@ -142,7 +142,10 @@
   }
   $transarray = array('%username%' => ($user->name?$user->name:''), '%site_mail%' => variable_get('site_mail', ''), '%currencysymbol%' => variable_get('payment_symbol', '$'), '%items%' => $pitems, '%total%' => (number_format($receipt->amount, 2, '.', '')), '%currency%' => ($receipt->currency), '%txnid%' => ($receipt->erid));
   $output = t(strtr(variable_get('ec_paperpayments_thankyoupage', '<p>Your order has been submitted to our system.</p><div class="paperpaymentssummary"><table id="paperpaymentstable"><tbody><tr class="odd"> <td class="active"><strong>Your Order ID:</strong></td>      <td> %txnid%</td></tr><tr class="even"> <td class="active"><strong>Items:</strong></td>      <td> %items%</td></tr><tr class="odd"> <td class="active"><strong>Total:</strong></td>      <td>%currencysymbol%%total%</td></tr><tr class="even"> <td class="active"><strong>Status:</strong></td>      <td>Payment pending</td></tr></tbody></table></div><p>You have chosen to pay byCheque/Bank Draft/Postal Order. &nbsp;To complete your order, please follow the instructions below:</p><p>1. Make your cheque/bank draft/postal order for the value displayed above payable to:<br />  <strong>[Your Company Name]</strong></p><p> 2. Mail your cheque/bank draft/postal order to:&nbsp;</p><p><strong>Accounts Department</strong> <br />1 Main Street <br />Town, Region <br />State <br />Country<p>Please quote your <strong>Order ID</strong> reference number with your payment.</p><p>If you have any questions, please contact us at <a  href="mailto:%site_mail%">%site_mail%</a> and quote your <strong>Order ID</strong>reference number in your communication.</p>'), $transarray));
+  // An output at this place is doomed to produce the notorious PHP "headers already sent"
+  // message at includes\common.inc in line 335 when Drupal tried redirecting
   print theme('page', $output);
+    exit; // there is nothing to do anyway.
\ No newline at end of file
 }
 
 /**
