امتیازها
113
راهحلها
27
- محل سکونت
- England
- نوشتهها
- 26,276
- تاریخ ثبتنام
- ۱۳۹۹٫۰۴٫۰۶
- پسندها
- 3,286
- سن
- 29
- وب سایت
- xenforo.xyz
- نسخه PHP
- 7.3
- نسخه زنفورو
- xenforo 2.2
\XFMG\Attachment\Media::onNewAttachmentPHP:
کد:
public function onNewAttachment(Attachment $attachment, \XF\FileWrapper $file)
{
/** @var \XFMG\Service\Media\TempCreator $tempCreator */
$tempCreator = \XF::app()->service('XFMG:Media\TempCreator');
$tempCreator->setAttachment($attachment);
if ($file->getExif())
{
$tempCreator->setExif($file->getExif());
}
$tempCreator->save();
}
When this is called, the...
Read more
