Ejegg has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/370980 )

Change subject: Initialize SmashPig context when submitting import
......................................................................

Initialize SmashPig context when submitting import

FIXME: figure out a better way to make sure it's initialized
whenever we need it, but doesn't litter the log files (and touch
all the files) for every single request.

Bug: T172918
Change-Id: I68bb18df1073cf425dddfe8f57e8412bc0b16c4a
---
M sites/all/modules/offline2civicrm/offline2civicrm.module
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm 
refs/changes/80/370980/1

diff --git a/sites/all/modules/offline2civicrm/offline2civicrm.module 
b/sites/all/modules/offline2civicrm/offline2civicrm.module
index 2a563e5..18ff9fa 100644
--- a/sites/all/modules/offline2civicrm/offline2civicrm.module
+++ b/sites/all/modules/offline2civicrm/offline2civicrm.module
@@ -150,6 +150,7 @@
 }
 
 function offline2civicrm_import_checks_form_submit( $form, $form_state ) {
+  wmf_common_create_smashpig_context( 'offline2civicrm' );
   if ( !empty( $form_state['values']['import_upload_submit'] ) ) {
     try {
       $validators = array(

-- 
To view, visit https://gerrit.wikimedia.org/r/370980
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I68bb18df1073cf425dddfe8f57e8412bc0b16c4a
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Ejegg <ej...@ejegg.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to