Permalink
Browse files

Added some nedded strings

  • Loading branch information...
1 parent 27ed82e commit 4f64ed94056028562a26245aa35cd77992452916 stronk7 committed Oct 10, 2004
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/moodlelib.php
View
@@ -3279,7 +3279,7 @@ function unzip_file ($zipfile, $destination = '') {
}
//Display some info about the unzip execution
- unzip_show_status($list);
+ unzip_show_status($list,$destpath);
return true;
}
@@ -3296,22 +3296,26 @@ function unzip_approvefile ($p_event, &$p_header) {
}
-function unzip_show_status ($list) {
+function unzip_show_status ($list,$removepath) {
//This function shows the results of the unzip execution
//depending of the value of the $CFG->zip, results will be
//text or an array of files.
global $CFG;
if (empty($CFG->unzip)) { // Use built-in php-based zip function
+ $strname = get_string("name");
+ $strsize = get_string("size");
+ $strmodified = get_string("modified");
+ $strstatus = get_string("status");
echo "<table cellpadding=\"4\" cellspacing=\"2\" border=\"0\" width=640>";
echo "<tr><th align=left>$strname</th>";
echo "<th align=right>$strsize</th>";
echo "<th align=right>$strmodified</th>";
echo "<th align=right>$strstatus</th></tr>";
foreach ($list as $item) {
echo "<tr>";
- $item['filename'] = str_replace(cleardoubleslashes("$basedir/$wdir/"), "", $item['filename']);
+ $item['filename'] = str_replace(cleardoubleslashes($removepath).'/', "", $item['filename']);
print_cell("left", $item['filename']);
if (! $item['folder']) {
print_cell("right", display_size($item['size']));

0 comments on commit 4f64ed9

Please sign in to comment.