1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Forum: Corrected attachment file-path.

This commit is contained in:
Cameron 2016-03-30 19:14:14 -07:00
parent 2e067dfdf7
commit 940ac85191

View File

@ -1114,11 +1114,11 @@ class forum_post_handler
e107::getMessage()->addDebug("Attachment Detected");
// retrieve and create attachment directory if needed
$attachmentDir = $this->forumObj->getAttachmentPath(USERID, true);
//$attachmentDir = $this->forumObj->getAttachmentPath(USERID, true);
e107::getMessage()->addDebug("Attachment Directory: ".$attachmentDir);
// e107::getMessage()->addDebug("Attachment Directory: ".$attachmentDir);
if($uploaded = e107::getFile()->getUploaded($attachmentDir, 'attachment', array( 'max_file_count' => 5)))
if($uploaded = e107::getFile()->getUploaded('attachments', 'attachment', array( 'max_file_count' => 5)))
{
e107::getMessage()->addDebug("Uploaded Data: ".print_a($uploaded,true));