mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Fixed some wrong call to pclzip.lib.php. See:
http://moodle.org/bugs/bug.php?op=show&bugid=1138
This commit is contained in:
parent
e1fc83a0ee
commit
da0fe63f91
2 changed files with 3 additions and 2 deletions
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue