1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00

Bugtracker #5176 - path for uploaded avatars not calculated correctly

This commit is contained in:
e107steved 2011-03-14 20:54:56 +00:00
parent 20704a1278
commit 6e50b07a15

View File

@ -1104,11 +1104,15 @@ class validatorClass
{
if (strpos('-upload-', $value) === 0)
{
$img = e_UPLOAD.'avatars/'.$value; // Its a server-stored image
$img = e_UPLOAD.'avatars/'.str_replace('-upload-', '', $value); // Its a user-uploaded image
}
elseif (strpos($avName, '/') !== FALSE)
{
$img = $value; // Its a remote image
}
else
{
$img = $value; // Its a remote image
$img = e_MEDIA.'avatars/'.$value; // Its a server-stored image
}
}
// Deliberately fall through into normal image processing