diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index 2a9e52454df..f3542260589 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -1750,7 +1750,7 @@ class Categorie extends CommonObject * @param int $notooltip 1=Disable tooltip * @param string $morecss Add more css on link * @param int $save_lastsearch_value -1=Auto, 0=No save of lastsearch_values when clicking, 1=Save lastsearch_values whenclicking - * @return string Chaine avec URL + * @return string String with URL */ public function getNomUrl($withpicto = 0, $option = '', $maxlength = 0, $moreparam = '', $notooltip = 0, $morecss = '', $save_lastsearch_value = 0) { @@ -1806,7 +1806,7 @@ class Categorie extends CommonObject $linkclose .= ($label ? ' title="'.dol_escape_htmltag($label, 1).'"' : ' title="tocomplete"'); $linkclose .= $dataparams.' class="'.$classfortooltip.' '.$forced_color.($morecss ? ' '.$morecss : '').'"'; } else { - $linkclose = ($morecss ? ' class="'.$forced_color.($morecss ? ' '.$morecss : '').'"' : ''); + $linkclose = ' class="'.$forced_color.($morecss ? ' '.$morecss : '').'"'; } if ($option == 'nolink' || empty($url)) { diff --git a/htdocs/categories/edit.php b/htdocs/categories/edit.php index 88d0ef2c0bd..6c46883797f 100644 --- a/htdocs/categories/edit.php +++ b/htdocs/categories/edit.php @@ -223,7 +223,8 @@ print ''; print dol_get_fiche_end(); -print '
| '; - $entry .= ''.$li.''; + $entry .= ''.$li.''; $entry .= ' | '; $entry .= $counter; @@ -659,14 +660,14 @@ if ($type == Categorie::TYPE_CUSTOMER) { } print "\t".'||
| '; + print ' | '; print $soc->getNomUrl(1); print " | \n"; // Link to delete from category print ''; if ($permission) { print "id."&type=".$typeid."&action=unlink&token=".newToken()."&removeelem=".$soc->id."'>"; - print $langs->trans("DeleteFromCat"); + print ''.$langs->trans("DeleteFromCat").''; print img_picto($langs->trans("DeleteFromCat"), 'unlink', '', 0, 0, 0, '', 'paddingleft'); print ""; } |