diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php
index 860e1b2ac24..a7e1693472b 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -8100,7 +8100,7 @@ abstract class CommonObject
* @param string $sdir Directory to scan (full absolute path)
* @param int $size 0=original size, 1='small' use thumbnail if possible
* @param int $nbmax Nombre maximum de photos (0=pas de max)
- * @param int $nbbyrow Number of image per line or -1 to use div. Used only if size=1.
+ * @param int $nbbyrow Number of image per line or -1 to use div separator or 0 to use no separator. Used only if size=1 or 'small'.
* @param int $showfilename 1=Show filename
* @param int $showaction 1=Show icon with action links (resize, delete)
* @param int $maxHeight Max height of original image when size='small' (so we can use original even if small requested). If 0, always use 'small' thumb image.
@@ -8219,26 +8219,28 @@ abstract class CommonObject
$alt = '';
}
+ $addphotorefcss = 1;
+
if ($usesharelink) {
if ($val['share']) {
if (empty($maxHeight) || $photo_vignette && $imgarray['height'] > $maxHeight) {
$return .= '';
- $return .= '
';
+ $return .= '
';
} else {
$return .= '';
- $return .= '
';
+ $return .= '
';
}
} else {
$return .= '';
- $return .= '
';
+ $return .= '
';
}
} else {
if (empty($maxHeight) || $photo_vignette && $imgarray['height'] > $maxHeight) {
$return .= '';
- $return .= '
';
+ $return .= '
';
} else {
$return .= '';
- $return .= '
';
+ $return .= '
';
}
}
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index 59c554b5b96..b6a7d1eb215 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -4506,8 +4506,8 @@ label.radioprivate {
border: 0px;
}
.photowithmargin {
- margin-bottom: 2px;
- margin-top: 10px;
+/* margin-bottom: 2px;
+ margin-top: 2px; */
}
div.divphotoref > a > .photowithmargin { /* Margin right for photo not inside a div.photoref frame only */
margin-right: 15px;
diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php
index 6496cf633a6..4ef715fb254 100644
--- a/htdocs/theme/md/style.css.php
+++ b/htdocs/theme/md/style.css.php
@@ -4462,8 +4462,8 @@ label.radioprivate {
border: 0px;
}
.photowithmargin {
- margin-bottom: 2px;
- margin-top: 2px;
+/* margin-bottom: 2px;
+ margin-top: 2px; */
}
div.divphotoref > a > .photowithmargin { /* Margin right for photo not inside a div.photoref frame only */
margin-right: 15px;
diff --git a/htdocs/ticket/contact.php b/htdocs/ticket/contact.php
index 73efc14a038..d31469f13f2 100644
--- a/htdocs/ticket/contact.php
+++ b/htdocs/ticket/contact.php
@@ -165,7 +165,7 @@ if ($id > 0 || !empty($track_id) || !empty($ref)) {
$langs->load("users");
$fuser = new User($db);
$fuser->fetch($object->fk_user_create);
- $morehtmlref .= $fuser->getNomUrl(0);
+ $morehtmlref .= $fuser->getNomUrl(-1);
}
if (!empty($object->origin_email)) {
$morehtmlref .= '
'.$langs->trans("CreatedBy").' : ';
diff --git a/htdocs/ticket/document.php b/htdocs/ticket/document.php
index e9f9dbbb145..8f682abee3e 100644
--- a/htdocs/ticket/document.php
+++ b/htdocs/ticket/document.php
@@ -134,7 +134,7 @@ if ($object->id) {
$langs->load("users");
$fuser = new User($db);
$fuser->fetch($object->fk_user_create);
- $morehtmlref .= $fuser->getNomUrl(0);
+ $morehtmlref .= $fuser->getNomUrl(-1);
}
if (!empty($object->origin_email)) {
$morehtmlref .= '
'.$langs->trans("CreatedBy").' : ';
diff --git a/htdocs/ticket/messaging.php b/htdocs/ticket/messaging.php
index 61417805006..e0232ae1175 100644
--- a/htdocs/ticket/messaging.php
+++ b/htdocs/ticket/messaging.php
@@ -161,7 +161,7 @@ if ($object->fk_user_create > 0) {
$langs->load("users");
$fuser = new User($db);
$fuser->fetch($object->fk_user_create);
- $morehtmlref .= $fuser->getNomUrl(0);
+ $morehtmlref .= $fuser->getNomUrl(-1);
}
if (!empty($object->origin_email)) {
$morehtmlref .= '
'.$langs->trans("CreatedBy").' : ';