Chanfed to locate the pclzip properly.

This commit is contained in:
stronk7 2003-08-01 23:36:07 +00:00
parent bcd269d24d
commit d37ca7c7f8

View file

@ -10,7 +10,7 @@
$status = true; $status = true;
if (empty($CFG->unzip)) { // Use built-in php-based unzip function if (empty($CFG->unzip)) { // Use built-in php-based unzip function
include_once("$CFG->wwwroot/lib/pclzip/pclzip.lib.php"); include_once("$CFG->dirroot/lib/pclzip/pclzip.lib.php");
$archive = new PclZip($file); $archive = new PclZip($file);
if (!$list = $archive->extract(dirname($file))) { if (!$list = $archive->extract(dirname($file))) {
$status = false; $status = false;