Fix: Useless call to html entities decoding

This commit is contained in:
Laurent Destailleur 2008-11-06 01:06:45 +00:00
parent 84c6b4afb0
commit aeb9f163ab

View File

@ -537,15 +537,15 @@ class Societe extends CommonObject
$this->date_update = $obj->date_update; $this->date_update = $obj->date_update;
$this->nom = stripslashes($obj->nom); $this->nom = $obj->nom;
$this->adresse = stripslashes($obj->address); $this->adresse = $obj->address;
$this->cp = $obj->cp; $this->cp = $obj->cp;
$this->ville = stripslashes($obj->ville); $this->ville = $obj->ville;
$this->adresse_full = stripslashes($obj->address) . "\n". $obj->cp . ' '. stripslashes($obj->ville); $this->adresse_full = $obj->address . "\n". $obj->cp . ' '. $obj->ville;
$this->pays_id = $obj->fk_pays; $this->pays_id = $obj->fk_pays;
$this->pays_code = $obj->fk_pays?$obj->pays_code:''; $this->pays_code = $obj->fk_pays?$obj->pays_code:'';
$this->pays = $obj->fk_pays?($langs->trans('Country'.$obj->pays_code)!='Country'.$obj->pays_code?strtoupper(clean_html($langs->trans('Country'.$obj->pays_code))):$obj->pays):''; $this->pays = $obj->fk_pays?($langs->trans('Country'.$obj->pays_code)!='Country'.$obj->pays_code?$langs->trans('Country'.$obj->pays_code):$obj->pays):'';
$this->departement_id = $obj->fk_departement; $this->departement_id = $obj->fk_departement;
$this->departement= $obj->fk_departement?$obj->departement:''; $this->departement= $obj->fk_departement?$obj->departement:'';
@ -604,8 +604,7 @@ class Societe extends CommonObject
$this->rubrique = $obj->rubrique; $this->rubrique = $obj->rubrique;
$this->note = $obj->note; $this->note = $obj->note;
// multiprix // multiprix
if($conf->global->PRODUIT_MULTIPRICES == 1) if($conf->global->PRODUIT_MULTIPRICES == 1) $this->price_level = $obj->price_level;
$this->price_level = $obj->price_level;
$result = 1; $result = 1;
} }
@ -666,7 +665,7 @@ class Societe extends CommonObject
$this->ville = $obj->ville; $this->ville = $obj->ville;
$this->pays_id = $obj->fk_pays; $this->pays_id = $obj->fk_pays;
$this->pays_code = $obj->fk_pays?$obj->pays_code:''; $this->pays_code = $obj->fk_pays?$obj->pays_code:'';
$this->pays = $obj->fk_pays?($langs->trans('Country'.$obj->pays_code)!='Country'.$obj->pays_code?strtoupper(clean_html($langs->trans('Country'.$obj->pays_code))):$obj->pays):''; $this->pays = $obj->fk_pays?($langs->trans('Country'.$obj->pays_code)!='Country'.$obj->pays_code?$langs->trans('Country'.$obj->pays_code):$obj->pays):'';
$this->tel = $obj->tel; $this->tel = $obj->tel;
$this->fax = $obj->fax; $this->fax = $obj->fax;
$this->note = $obj->note; $this->note = $obj->note;