diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index e67315adebb..53f77262db1 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -4794,9 +4794,10 @@ class Form
* @param int $width Width of photo
* @param int $height Height of photo (auto if 0)
* @param int $caneditfield Add edit fields
+ * @param string $photologo CSS name to use on img for photo
* @return string HTML code to output photo
*/
- static function showphoto($modulepart,$object,$width=100,$height=0,$caneditfield=0)
+ static function showphoto($modulepart,$object,$width=100,$height=0,$caneditfield=0,$cssclass='photowithmargin')
{
global $conf,$langs;
@@ -4839,13 +4840,13 @@ class Form
{
// TODO Link to large image
$ret.='';
- $ret.='';
+ $ret.='
';
$ret.='';
}
else if ($altfile && file_exists($dir."/".$altfile))
{
$ret.='';
- $ret.='
';
+ $ret.='
';
$ret.='';
}
else
diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index 7c9b90a8737..13ef97c514e 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -1439,7 +1439,7 @@ function top_menu($head, $title='', $target='', $disablejs=0, $disablehead=0, $a
// User photo
$toprightmenu.='