Fixing a misprint that was preventing multiple files from showing.

This commit is contained in:
gustav_delius
2006-02-18 21:19:04 +00:00
parent 238bf03473
commit 1ef048aed3
+2 -3
View File
@@ -1324,9 +1324,8 @@ class assignment_base {
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 @@ class assignment_base {
$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 />';
}
}