From e525e3d32f40e215d518cec8fcb0ca37bc9447cf Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 17 Jan 2005 15:21:00 +0000 Subject: [PATCH] Works with slasharguments off now --- userpix/index.php | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/userpix/index.php b/userpix/index.php index 90762aa7da..a744cfb567 100644 --- a/userpix/index.php +++ b/userpix/index.php @@ -25,11 +25,17 @@ print_header($title, $title, $title); foreach ($users as $user) { - echo "wwwroot/user/view.php?id=$user->id&course=1\"". - "title=\"".fullname($user)."\">"; - echo "wwwroot/user/pix.php/$user->id/f1.jpg\" ". - "width=100 height=100 alt=\"".fullname($user)."\" />"; - echo " \n"; + $fullname = fullname($user); + echo "wwwroot/user/view.php?id=$user->id&course=1\"". + "title=\"$fullname\">"; + if ($CFG->slasharguments) { // Use this method if possible for better caching + echo ''.$fullname.''; + } else { + echo ''.$fullname.''; + } + echo " \n"; } print_footer(); -- 2.39.5