Fixed some wrong call to pclzip.lib.php. See:

http://moodle.org/bugs/bug.php?op=show&bugid=1138
This commit is contained in:
stronk7 2004-03-11 23:47:18 +00:00
parent e1fc83a0ee
commit da0fe63f91
2 changed files with 3 additions and 2 deletions

View file

@ -440,7 +440,7 @@
$file = basename($file);
if (empty($CFG->unzip)) { // Use built-in php-based unzip function
include_once('../pclzip/pclzip.lib.php');
include_once($CFG->libdir.'/pclzip/pclzip.lib.php');
$archive = new PclZip("$basedir/$wdir/$file");
if (!$list = $archive->extract("$basedir/$wdir")) {
error($archive->errorInfo(true));
@ -501,7 +501,7 @@
echo "<P ALIGN=CENTER>$strlistfiles:</P>";
$file = basename($file);
include_once('../lib/pclzip/pclzip.lib.php');
include_once($CFG->libdir.'/pclzip/pclzip.lib.php');
$archive = new PclZip("$basedir/$wdir/$file");
if (!$list = $archive->listContent("$basedir/$wdir")) {
notify($archive->errorInfo(true));

View file

@ -38,6 +38,7 @@
notice(get_string("activityiscurrentlyhidden"));
}
add_seguimiento($cm->id,$USER->id);
switch ($resource->type) {
case REFERENCE:
add_to_log($course->id, "resource", "view", "view.php?id=$cm->id", $resource->id, $cm->id);