From: Steve Sutton Date: Mon, 12 Feb 2018 19:01:44 +0000 (-0500) Subject: Updating import code for ref_type X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=f73f69fd69346af55b36ec7ab0ad4b1010912057;p=WP-Plugins%2Fglm-member-db-social.git Updating import code for ref_type Ref type was initially setup to use memberinfo as type. Seems wrong but since all sites already using the social plugin have it set to memberinfo have to import them like that. --- diff --git a/models/admin/import/social.php b/models/admin/import/social.php index 0d510f0..7f9263c 100644 --- a/models/admin/import/social.php +++ b/models/admin/import/social.php @@ -252,7 +252,7 @@ class GlmMembersAdmin_import_social extends GlmMembersAdmin_import_index $dataTable, array( 'url' => $member['facebook'], - 'ref_type' => $this->config['ref_type_numb']['Member'], + 'ref_type' => $this->config['ref_type_numb']['MemberInfo'], 'ref_dest' => $memberId, 'social' => 1 ), @@ -265,7 +265,7 @@ class GlmMembersAdmin_import_social extends GlmMembersAdmin_import_index $dataTable, array( 'url' => $member['twitter'], - 'ref_type' => $this->config['ref_type_numb']['Member'], + 'ref_type' => $this->config['ref_type_numb']['MemberInfo'], 'ref_dest' => $memberId, 'social' => 2 ), @@ -278,7 +278,7 @@ class GlmMembersAdmin_import_social extends GlmMembersAdmin_import_index $dataTable, array( 'url' => $member['pinterest'], - 'ref_type' => $this->config['ref_type_numb']['Member'], + 'ref_type' => $this->config['ref_type_numb']['MemberInfo'], 'ref_dest' => $memberId, 'social' => 3 ), @@ -291,7 +291,7 @@ class GlmMembersAdmin_import_social extends GlmMembersAdmin_import_index $dataTable, array( 'url' => $member['google_plus'], - 'ref_type' => $this->config['ref_type_numb']['Member'], + 'ref_type' => $this->config['ref_type_numb']['MemberInfo'], 'ref_dest' => $memberId, 'social' => 4 ), @@ -303,7 +303,7 @@ class GlmMembersAdmin_import_social extends GlmMembersAdmin_import_index $dataTable, array( 'url' => $member['digg'], - 'ref_type' => $this->config['ref_type_numb']['Member'], + 'ref_type' => $this->config['ref_type_numb']['MemberInfo'], 'ref_dest' => $memberId, 'social' => 5 ) @@ -315,7 +315,7 @@ class GlmMembersAdmin_import_social extends GlmMembersAdmin_import_index $dataTable, array( 'url' => $member['linkedin'], - 'ref_type' => $this->config['ref_type_numb']['Member'], + 'ref_type' => $this->config['ref_type_numb']['MemberInfo'], 'ref_dest' => $memberId, 'social' => 6 ), @@ -328,7 +328,7 @@ class GlmMembersAdmin_import_social extends GlmMembersAdmin_import_index $dataTable, array( 'url' => $member['instagram'], - 'ref_type' => $this->config['ref_type_numb']['Member'], + 'ref_type' => $this->config['ref_type_numb']['MemberInfo'], 'ref_dest' => $memberId, 'social' => 7 ), @@ -341,7 +341,7 @@ class GlmMembersAdmin_import_social extends GlmMembersAdmin_import_index $dataTable, array( 'url' => $member['youtube'], - 'ref_type' => $this->config['ref_type_numb']['Member'], + 'ref_type' => $this->config['ref_type_numb']['MemberInfo'], 'ref_dest' => $memberId, 'social' => 8 ), @@ -354,7 +354,7 @@ class GlmMembersAdmin_import_social extends GlmMembersAdmin_import_index $dataTable, array( 'url' => $member['flickr'], - 'ref_type' => $this->config['ref_type_numb']['Member'], + 'ref_type' => $this->config['ref_type_numb']['MemberInfo'], 'ref_dest' => $memberId, 'social' => 9 ), @@ -367,7 +367,7 @@ class GlmMembersAdmin_import_social extends GlmMembersAdmin_import_index $dataTable, array( 'url' => $member['blog'], - 'ref_type' => $this->config['ref_type_numb']['Member'], + 'ref_type' => $this->config['ref_type_numb']['MemberInfo'], 'ref_dest' => $memberId, 'social' => 10 ), @@ -379,7 +379,7 @@ class GlmMembersAdmin_import_social extends GlmMembersAdmin_import_index $dataTable, array( 'url' => $member['photobucket'], - 'ref_type' => $this->config['ref_type_numb']['Member'], + 'ref_type' => $this->config['ref_type_numb']['MemberInfo'], 'ref_dest' => $memberId, 'social' => 11 ),