[RSS Feed/News] Thumbnail / Poster handling seems inefficient

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
\XFMG\Attachment\Media::onAssociation
PHP:

Code:
if ($tempMedia->thumbnail_date)
{
    $tempThumbPath = $tempMedia->getAbstractedTempThumbnailPath();
    $mediaThumbPath = $container->getAbstractedThumbnailPath();

    $tempFile = \XF\Util\File::copyAbstractedPathToTempFile($tempThumbPath);
    \XF\Util\File::copyFileToAbstractedPath($tempFile, $mediaThumbPath);

    $container->fastUpdate('thumbnail_date', $tempMedia->thumbnail_date)...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom