r78864 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78863‎ | r78864 | r78865 >
Date:23:58, 22 December 2010
Author:kaldari
Status:deferred
Tags:
Comment:
fixing thank_you
Modified paths:
  • /civicrm/trunk/sites/all/modules/thank_you/thank_you.module (modified) (history)

Diff [purge]

Index: civicrm/trunk/sites/all/modules/thank_you/thank_you.module
@@ -131,7 +131,8 @@
132132 function thank_you_send( $contribution_info ) {
133133 civicrm_initialize(true);
134134 require_once 'api/v2/Contribute.php';
135 - $params = array( 'contribution_id' => $contribution_info[ 'contribution_id' ] );
 135+ $contribution_id = $contribution_info[ 'contribution_id' ];
 136+ $params = array( 'contribution_id' => $contribution_id );
136137 $contribution = &civicrm_contribution_get( $params );
137138
138139 if (strtotime($contribution['receive_date']) < time() - 86400 * variable_get('thank_you_days', 14)) {

Status & tagging log