• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed  Attachment Model Bug

#1
okay, I think i find a bug... I just examining the code and i found this...

Model/Attachment.php

public function deleteAttachmentData($dataId)
{
$dataDw = XenForo_DataWriter::create('XenForo_DataWriter_AttachmentData', XenForo_DataWriter::ERROR_SILENT);
$dataDw->setExistingData($dataDw);
$dataDw->delete();
}
I think the correct line is...

$dataDw->setExistingData($dataId);