r80215 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80214‎ | r80215 | r80216 >
Date:00:36, 14 January 2011
Author:awjrichards
Status:deferred
Tags:
Comment:
Fixed incorrect watchdog log message syntax.
Modified paths:
  • /civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm_common.inc (modified) (history)

Diff [purge]

Index: civicrm/trunk/sites/all/modules/queue2civicrm/queue2civicrm_common.inc
@@ -283,10 +283,10 @@
284284 if (array_key_exists( 'contribution_tracking_id', $msg )) {
285285 $result = db_query('UPDATE {contribution_tracking} SET contribution_id=%d WHERE id=%d', $contribution['id'], $msg['contribution_tracking_id']);
286286 if ( !$result ) {
287 - watchdog( 'queue2civicrm', "There was a probme updating contribution_tracking for message: %msg", print_r( $msg, true ), WATCHDOG_ERROR );
 287+ watchdog( 'queue2civicrm', "There was a probme updating contribution_tracking for message: %msg", array( '%msg' => print_r( $msg, true )), WATCHDOG_ERROR );
288288 return FALSE;
289289 } else {
290 - watchdog( 'queue2civicrm', 'Successfuly updated contribution_tracking for message: %msg', print_r( $msg, true));
 290+ watchdog( 'queue2civicrm', 'Successfuly updated contribution_tracking for message: %msg', array( '%msg' => print_r( $msg, true)));
291291 return TRUE;
292292 }
293293 }

Status & tagging log