Changeset 331 for trunk/lib/PayPal.inc.php
- Timestamp:
- May 6, 2008 7:49:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/PayPal.inc.php
r247 r331 80 80 81 81 if (!is_array($options) || empty($options)) { 82 $app->logMsg(sprintf('Invalid options: %s', getDump($options)), LOG_WARNING, __FILE__, __LINE__);82 $app->logMsg(sprintf('Invalid options: %s', truncate(getDump($options, true), 128, 'end')), LOG_WARNING, __FILE__, __LINE__); 83 83 return false; 84 84 } … … 117 117 118 118 if (!is_array($options) || empty($options)) { 119 $app->logMsg(sprintf('Invalid options: %s', getDump($options)), LOG_WARNING, __FILE__, __LINE__);119 $app->logMsg(sprintf('Invalid options: %s', truncate(getDump($options, true), 128, 'end')), LOG_WARNING, __FILE__, __LINE__); 120 120 return false; 121 121 } 122 122 123 123 if (isset($this->_buttons[$name])) { 124 $app->logMsg(sprintf('Overwriting existing button name: %s', getDump($this->_buttons[$name])), LOG_DEBUG, __FILE__, __LINE__);124 $app->logMsg(sprintf('Overwriting existing button name: %s', truncate(getDump($this->_buttons[$name], true), 128, 'end')), LOG_DEBUG, __FILE__, __LINE__); 125 125 } 126 126 … … 275 275 276 276 if (getPost('test_ipn') == '1' || $this->getParam('test_mode')) { 277 $app->logMsg(sprintf('Processing PayPal IPN in test mode: %s', getDump(getFormData())), LOG_DEBUG, __FILE__, __LINE__);277 $app->logMsg(sprintf('Processing PayPal IPN in test mode: %s', truncate(getDump(getFormData(), true), 128, 'end')), LOG_DEBUG, __FILE__, __LINE__); 278 278 $url = parse_url('https://www.sandbox.paypal.com/cgi-bin/webscr'); 279 279 } else { 280 $app->logMsg(sprintf('Processing PayPal IPN: %s', getDump(getFormData())), LOG_DEBUG, __FILE__, __LINE__);280 $app->logMsg(sprintf('Processing PayPal IPN: %s', truncate(getDump(getFormData(), true), 128, 'end')), LOG_DEBUG, __FILE__, __LINE__); 281 281 $url = parse_url($this->getParam('paypal_url')); 282 282 }
Note: See TracChangeset
for help on using the changeset viewer.