Restore compatibility with old version
This commit is contained in:
parent
5181afd49d
commit
b88a28b660
@ -1862,6 +1862,7 @@ class User extends CommonObject
|
|||||||
|
|
||||||
$result = '';
|
$result = '';
|
||||||
$companylink = '';
|
$companylink = '';
|
||||||
|
$link = '';
|
||||||
|
|
||||||
$label = '<u>' . $langs->trans("User") . '</u>';
|
$label = '<u>' . $langs->trans("User") . '</u>';
|
||||||
$label.= '<div width="100%">';
|
$label.= '<div width="100%">';
|
||||||
@ -1914,7 +1915,7 @@ class User extends CommonObject
|
|||||||
$link.= '>';
|
$link.= '>';
|
||||||
$linkend='</a>';
|
$linkend='</a>';
|
||||||
|
|
||||||
if (abs($withpictoimg) == 1) $result.='<div class="nowrap">';
|
//if ($withpictoimg == -1) $result.='<div class="nowrap">';
|
||||||
$result.=$link;
|
$result.=$link;
|
||||||
if ($withpictoimg)
|
if ($withpictoimg)
|
||||||
{
|
{
|
||||||
@ -1929,7 +1930,7 @@ class User extends CommonObject
|
|||||||
$result.='<div class="inline-block valignmiddle'.($morecss?' usertext'.$morecss:'').'">'.$this->getFullName($langs,'',($mode == 'firstname' ? 2 : -1),$maxlen).'</div>';
|
$result.='<div class="inline-block valignmiddle'.($morecss?' usertext'.$morecss:'').'">'.$this->getFullName($langs,'',($mode == 'firstname' ? 2 : -1),$maxlen).'</div>';
|
||||||
}
|
}
|
||||||
$result.=$linkend;
|
$result.=$linkend;
|
||||||
if (abs($withpictoimg) == 1) $result.='</div>';
|
//if ($withpictoimg == -1) $result.='</div>';
|
||||||
$result.=$companylink;
|
$result.=$companylink;
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user