fix user picture url handling

This commit is contained in:
Angelo Cuccato 2010-11-06 16:29:54 +01:00
parent 2ca2400b77
commit 0c046a784a
1 changed files with 3 additions and 2 deletions

View File

@ -88,10 +88,11 @@ function GetPicturShow($UID)
[<Höhe des Bildes (wenn die höhe kleiner 1 ist wird die höhe nicht begrenzt)>] */ [<Höhe des Bildes (wenn die höhe kleiner 1 ist wird die höhe nicht begrenzt)>] */
function displayPictur($UID, $height="30") function displayPictur($UID, $height="30")
{ {
global $url, $ENGEL_ROOT;
if( $height > 0) if( $height > 0)
return( "<img src=\"/ShowUserPicture.php?UID=$UID\" height=\"$height\" alt=\"picture of USER$UID\" class=\"photo\">"); return( "<img src=\"". $url. $ENGEL_ROOT. "ShowUserPicture.php?UID=$UID\" height=\"$height\" alt=\"picture of USER$UID\" class=\"photo\">");
else else
return( "<img src=\"/ShowUserPicture.php?UID=$UID\" alt=\"picture of USER$UID\">"); return( "<img src=\"". $url. $ENGEL_ROOT. "ShowUserPicture.php?UID=$UID\" alt=\"picture of USER$UID\">");
} }