FIX #4880. Lang should not be requied to fetch a user
This commit is contained in:
parent
12c8ed6cf0
commit
83dd3081d5
@ -162,7 +162,7 @@ class User extends CommonObject
|
||||
*/
|
||||
function fetch($id='', $login='',$sid='',$loadpersonalconf=1, $entity=-1)
|
||||
{
|
||||
global $langs, $conf, $user;
|
||||
global $conf, $user;
|
||||
|
||||
// Clean parameters
|
||||
$login=trim($login);
|
||||
@ -256,7 +256,7 @@ class User extends CommonObject
|
||||
|
||||
$this->country_id = $obj->country_id;
|
||||
$this->country_code = $obj->country_id?$obj->country_code:'';
|
||||
$this->country = $obj->country_id?($langs->trans('Country'.$obj->country_code)!='Country'.$obj->country_code?$langs->transnoentities('Country'.$obj->country_code):$obj->country):'';
|
||||
//$this->country = $obj->country_id?($langs->trans('Country'.$obj->country_code)!='Country'.$obj->country_code?$langs->transnoentities('Country'.$obj->country_code):$obj->country):'';
|
||||
|
||||
$this->state_id = $obj->state_id;
|
||||
$this->state_code = $obj->state_code;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user