mirror of
https://github.com/e107inc/e107.git
synced 2025-04-22 13:41:52 +02:00
Save attachment fix with forum-post - db encoding issue remains.
This commit is contained in:
parent
82ac19d038
commit
e5ded966cc
@ -254,13 +254,14 @@ if (isset($_POST['newthread']) || isset($_POST['reply']))
|
||||
// $_tmp = $ur['type'].'*'.$ur['file'];
|
||||
// if($ur['thumb']) { $_tmp .= '*'.$ur['thumb']; }
|
||||
// if($ur['fname']) { $_tmp .= '*'.$ur['fname']; }
|
||||
|
||||
|
||||
$type = $ur['type'];
|
||||
$newValues[$type][] = $ur['fname'];
|
||||
$newValues[$type][] = $ur['file'];
|
||||
// $attachments[] = $_tmp;
|
||||
}
|
||||
// $postInfo['_FIELD_TYPES']['post_attachments'] = 'array'; //XXX Horrible "FIELD_TYPES" idea.
|
||||
$postInfo['post_attachments'] = e107::serialize($newValues); //FIXME
|
||||
|
||||
// $postInfo['_FIELD_TYPES']['post_attachments'] = 'array';
|
||||
$postInfo['post_attachments'] = e107::serialize($newValues); //FIXME XXX - broken encoding when saved to DB.
|
||||
}
|
||||
// var_dump($uploadResult);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user