profile picture
This commit is contained in:
@@ -117,7 +117,7 @@ long WrenchSaveStoredMedia(CVars in, CVars &out) {
|
||||
REQ_STRING(in, "profile", 5, 40, "(.*)");
|
||||
pgsql_exec("UPDATE members SET profile_pic='%s' "
|
||||
" WHERE uid='%s'",in["profile"].c_str(), in["file_uid"].c_str());
|
||||
|
||||
|
||||
snprintf(vname, sizeof (vname), "SELECT * FROM members WHERE uid ='%s'", in["file_uid"].c_str());
|
||||
break;
|
||||
|
||||
|
||||
@@ -65,6 +65,7 @@ class UploadManager extends Model
|
||||
$out["call_backend"] = false; // flag ready to save data entry
|
||||
$data['file_uid'] =$in["uid"];
|
||||
$data['profile'] = $in["profile"];
|
||||
$data['member_id'] = $in["member_id"];
|
||||
$data['file_section'] = WRENCHBOARD_PICTURE_PROFILE;
|
||||
$out['upload_result'] = $this->specififBackendCall(WRENCHBOARD_SAVE_MEDIA,$data);
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user