r80644 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80643‎ | r80644 | r80645 >
Date:20:22, 20 January 2011
Author:awjrichards
Status:deferred
Tags:
Comment:
Modified msg object logging to log only the message body if message hasn't been turned into an array yet (raw message object)
Modified paths:
  • /civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm.module (modified) (history)
  • /civicrm/trunk/sites/all/modules/queue2civicrm/recurring/recurring.module (modified) (history)

Diff [purge]

Index: civicrm/trunk/sites/all/modules/queue2civicrm/recurring/recurring.module
@@ -184,7 +184,7 @@
185185 $log = array(
186186 'gateway' => 'recurring_paypal',
187187 'gateway_txn_id' => ( strlen( $msg[ 'gateway_txn_id_orig' ] ) ? $msg[ 'gateway_txn_id_orig' ] : $msg[ 'txn_type' ] . ":" . $msg[ 'subscr_id' ] ),
188 - 'data' => ( is_array( $msg_orig ) ? json_encode( $msg_orig ) : $msg_orig ),
 188+ 'data' => ( is_array( $msg_orig ) ? json_encode( $msg_orig ) : $msg_orig->body ),
189189 'timestamp' => time(),
190190 'verified' => 0,
191191 );
Index: civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm.module
@@ -195,7 +195,7 @@
196196 $log = array(
197197 'gateway' => $msg[ 'gateway' ],
198198 'gateway_txn_id' => $msg[ 'gateway_txn_id' ],
199 - 'data' => ( is_array( $msg_orig ) ? json_encode( $msg_orig ) : $msg_orig ),
 199+ 'data' => ( is_array( $msg_orig ) ? json_encode( $msg_orig ) : $msg_orig->body ),
200200 'timestamp' => time(),
201201 'verified' => 0,
202202 );

Status & tagging log