summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngelo Cuccato <cuccato@web.de>2010-11-06 16:29:54 +0100
committerAngelo Cuccato <cuccato@web.de>2010-11-06 16:29:54 +0100
commit0c046a784ac33a3f10985e460f3511301ddfd31f (patch)
treeafe50ce4ca38260f1dd6c7ed55e7f40ba7a6b38f /includes
parent2ca2400b779484ff025b0705ff4fb84ead7c4b20 (diff)
fix user picture url handling
Diffstat (limited to 'includes')
-rwxr-xr-xincludes/funktion_user.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/funktion_user.php b/includes/funktion_user.php
index 58ee6ea4..0cdf8144 100755
--- a/includes/funktion_user.php
+++ b/includes/funktion_user.php
@@ -88,10 +88,11 @@ function GetPicturShow($UID)
[<Höhe des Bildes (wenn die höhe kleiner 1 ist wird die höhe nicht begrenzt)>] */
function displayPictur($UID, $height="30")
{
+ global $url, $ENGEL_ROOT;
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
- 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\">");
}