Skip to content

Commit

Permalink
Merge pull request techjoomla#13 from SharayuYadav/plg-api-user-local
Browse files Browse the repository at this point in the history
Task #140920 Feat: Upgrade com_api
  • Loading branch information
coolbung authored Apr 25, 2019
2 parents 82ac155 + bd51484 commit ce0937b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/users/users.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
$language->load('com_users');
$language->load('com_users', JPATH_SITE, 'en-GB', true);
$language->load('com_users', JPATH_ADMINISTRATOR, 'en-GB', true);
require_once JPATH_SITE . '/libraries/joomla/filesystem/folder.php';
require_once JPATH_ROOT . '/administrator/components/com_users/models/users.php';

/**
Expand Down Expand Up @@ -383,7 +382,7 @@ public function get()
* Function create easysocial profile.
*
* @deprecated 2.0 This will be move in the Easysocial API
*
*
* @return user obj
*/
public function createEsprofile($log_user)
Expand Down Expand Up @@ -515,15 +514,15 @@ public function create_field_arr($fields,$post)
$avtar_pth = $phto_obj['temp_path'];
$avtar_scr = $phto_obj['temp_uri'];
$avtar_typ = 'upload';
$avatar_file_name = $_FILES['avatar']['name'];
$avatar_file_name = $_FILES['avatar']['name'];
}

foreach($fields as $field)
{
$fobj = new stdClass();
$fullname = $app->input->get('name', '', 'STRING');
$fld_data['first_name'] = $app->input->get('name', '', 'STRING');


$fobj->first = $fld_data['first_name'];
$fobj->middle = '';
Expand Down

0 comments on commit ce0937b

Please sign in to comment.