Skip to content
Permalink
Browse files

Fixing a misprint that was preventing multiple files from showing.

  • Loading branch information...
gustav_delius
gustav_delius committed Feb 18, 2006
1 parent 238bf03 commit 1ef048aed30c1fe447d09da5eaa349f651489235
Showing with 2 additions and 3 deletions.
  1. +2 −3 mod/assignment/lib.php
@@ -1324,9 +1324,8 @@ function print_user_files($userid=0, $return=false) {
if ($basedir = $this->file_area($userid)) {
if ($files = get_directory_list($basedir)) {
require_once($CFG->libdir.'/filelib.php');
foreach ($files as $key => $file) {
require_once($CFG->libdir.'/filelib.php');
$icon = mimeinfo('icon', $file);
@@ -1336,7 +1335,7 @@ function print_user_files($userid=0, $return=false) {
$ffurl = "$CFG->wwwroot/file.php?file=/$filearea/$file";
}
$output = '<img align="middle" src="'.$CFG->pixpath.'/f/'.$icon.'" height="16" width="16" alt="'.$icon.'" />'.
$output .= '<img align="middle" src="'.$CFG->pixpath.'/f/'.$icon.'" height="16" width="16" alt="'.$icon.'" />'.
'<a href="'.$ffurl.'" >'.$file.'</a><br />';
}
}

0 comments on commit 1ef048a

Please sign in to comment.
You can’t perform that action at this time.