mirror of
https://github.com/e107inc/e107.git
synced 2025-07-06 15:53:55 +02:00
Bugtracker #5176 - path for uploaded avatars not calculated correctly
This commit is contained in:
@ -1104,11 +1104,15 @@ class validatorClass
|
|||||||
{
|
{
|
||||||
if (strpos('-upload-', $value) === 0)
|
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
|
else
|
||||||
{
|
{
|
||||||
$img = $value; // Its a remote image
|
$img = e_MEDIA.'avatars/'.$value; // Its a server-stored image
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Deliberately fall through into normal image processing
|
// Deliberately fall through into normal image processing
|
||||||
|
Reference in New Issue
Block a user