From 6cf2fe03366dc17e22680cf5563b75e16bd62009 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 10 Oct 2004 22:48:59 +0000 Subject: [PATCH] Added some needed strings. Merged from MOODLE_14_STABLE --- lib/moodlelib.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 4476ffe3e0..eee5fbdef2 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -4368,7 +4368,7 @@ function unzip_file ($zipfile, $destination = '') { } //Display some info about the unzip execution - unzip_show_status($list); + unzip_show_status($list,$destpath); return true; } @@ -4384,7 +4384,7 @@ 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. @@ -4392,6 +4392,10 @@ function unzip_show_status ($list) { 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 ""; echo ""; echo ""; @@ -4399,7 +4403,7 @@ function unzip_show_status ($list) { echo ""; foreach ($list as $item) { echo ""; - $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'])); -- 2.39.5
$strname$strsize$strstatus