[RSS Feed/News] Useless write in \XF\Service\User\Avatar::updateAvatar

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Not a big issue, but seems useless anyway:

PHP:

Code:
if ($shortSide > $origSize)
{
    [...]
}
else
{
    $outputFiles['o'] = $this->fileName;
    [...]
}

[...]

foreach ($this->sizeMap AS $code => $size)
{
    if (isset($outputFiles[$code]))
    {
        continue;
    }
    
    [...]
}

[...]

foreach ($outputFiles AS $code => $file)
{
    $dataFile = $this->user->getAbstractedCustomAvatarPath($code);
    XF\Util\File::copyFileToAbstractedPath($file, $dataFile);
}

If this code path is...

Read more

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