Index: civicrm/trunk/sites/all/modules/wmf_premiums/wmf_premiums.module |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | $items['admin/settings/wmf_premiums/test'] = array( |
17 | 17 | 'title' => 'Premium insert test', |
18 | 18 | 'access arguments' => array('administer wmf premiums'), |
19 | | - 'page_callback' => 'wmf_premiums_test_insert', |
| 19 | + 'page callback' => 'wmf_premiums_test_insert', |
20 | 20 | 'type' => MENU_CALLBACK, |
21 | 21 | ); |
22 | 22 | |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | } |
42 | 42 | |
43 | 43 | $query = "INSERT INTO civicrm.premiums (tracking_id, contact_id, contribution_id, shirt, shirt_size) |
44 | | - VALUES ( %1, %2, %3, %4, '%5' )"; |
| 44 | + VALUES ( %d, %d, %d, %d, '%s' )"; |
45 | 45 | |
46 | 46 | watchdog( 'wmf_premiums', 'Preparing to insert premium data with the following contribution info: %contrib_info', array( '%contrib_info' => print_r( $contribution_info, true )), WATCHDOG_DEBUG ); |
47 | 47 | $result = db_query( $query, |