mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Avatar path corrections.
This commit is contained in:
@@ -18,10 +18,14 @@ if (!defined('e107_INIT'))
|
||||
|
||||
function avatar($avatar)
|
||||
{
|
||||
|
||||
return e107::getParser()->parseTemplate("{USER_AVATAR=".$avatar."}",true);
|
||||
|
||||
|
||||
global $tp;
|
||||
if (stristr($avatar, '-upload-') !== false)
|
||||
{
|
||||
return e_UPLOAD.'avatars/'.str_replace('-upload-', '', $avatar);
|
||||
return e_AVATAR_UPLOAD.str_replace('-upload-', '', $avatar);
|
||||
}
|
||||
elseif (stristr($avatar, 'Binary') !== false)
|
||||
{
|
||||
|
Reference in New Issue
Block a user