From: moodler Date: Mon, 17 Jan 2005 15:21:00 +0000 (+0000) Subject: Works with slasharguments off now X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e525e3d32f40e215d518cec8fcb0ca37bc9447cf;p=moodle.git Works with slasharguments off now --- 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();