Solved vBulletin 4: Attachment import is messed up

This topic has been solved
K

Kirby

Guest
XFI\Import\Importer\vBulletin4::getAttachmentsForFileDataIds

PHP:

Code:
protected function getAttachmentsForFileDataIds(array $fileDataIds, $contentIdKey = 'postid')
{
    $fileDataIds = $this->sourceDb->quote($fileDataIds);

    return $this->sourceDb->fetchAll("
        SELECT
            attachment.attachmentid, attachment.filename, attachment.userid,
            attachment.dateline, attachment.counter,
            attachment.contentid AS {$contentIdKey},
            filedata.filedataid...

Read more

Continue reading...