Index: branches/5.2.x/units/downloads/download_helper.php =================================================================== diff -u -N -r14618 -r14655 --- branches/5.2.x/units/downloads/download_helper.php (.../download_helper.php) (revision 14618) +++ branches/5.2.x/units/downloads/download_helper.php (.../download_helper.php) (revision 14655) @@ -1,6 +1,6 @@ Application->recallObject('file', null, Array('skip_autoload' => true)); + /* @var $file_object kDBItem */ $sql = $file_id ? 'SELECT FileId, FilePath, RealPath, MIMEType FROM '.$this->Application->getUnitOption('file', 'TableName').' @@ -34,7 +35,7 @@ WHERE ProductId = '.$product_id.' AND IsPrimary = 1'; $file_info = $this->Conn->GetRow($sql); - $field_options = $file_object->getFieldOptions('RealPath'); + $field_options = $file_object->GetFieldOptions('RealPath'); $file_info['real_path'] = FULL_PATH.$field_options['upload_dir'].'/'.$file_info['RealPath']; $file_info = $this->DoSendFile($file_info); return $file_info;