diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 38a2eee7555..21650cd62f6 100755 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -4506,7 +4506,7 @@ class Form * @param int $width Width of photo * @return string HTML code to output photo */ - function showphoto($modulepart,$object,$width=100) + static function showphoto($modulepart,$object,$width=100) { global $conf; diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 11ae1363ed6..fbba2bce18b 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -1700,9 +1700,10 @@ class Societe extends CommonObject * @param int $withpicto Add picto into link (0=No picto, 1=Include picto with link, 2=Picto only) * @param string $option Target of link ('', 'customer', 'prospect', 'supplier') * @param int $maxlen Max length of text + * @param string $notooltip 1=Disable tooltip * @return string String with URL */ - function getNomUrl($withpicto=0,$option='',$maxlen=0) + function getNomUrl($withpicto=0,$option='',$maxlen=0,$notooltip=0) { global $conf,$langs; @@ -1718,11 +1719,10 @@ class Societe extends CommonObject $name =$code.' '.$name; } - $result=''; - $lien=$lienfin=''; - $label = '
| ';
+ $result=''; $label='';
+ $lien=''; $lienfin='';
+
+ $label.= ' ';
if ($option == 'customer' || $option == 'compta')
{
@@ -1764,15 +1764,18 @@ class Societe extends CommonObject
if (! empty($this->code_fournisseur))
$label.= ' ' . $langs->trans('SupplierCode') . ': '. $this->code_fournisseur; - $label.= ' | ';
- if (! empty($this->logo)) {
- $form = new Form($db);
- $label .= '' . $form->showphoto('societe', $this, 80) . ' | '; + if (! empty($this->logo)) + { + $label.= '