]> git.mjollnir.org Git - moodle.git/commitdiff
fixed pclzip import
authorskodak <skodak>
Sun, 6 Feb 2005 19:40:01 +0000 (19:40 +0000)
committerskodak <skodak>
Sun, 6 Feb 2005 19:40:01 +0000 (19:40 +0000)
lib/editor/courseimages.php

index faf10f4764d1e034301f94de01059621b5d72ff9..a1525b7557a2c13f9780ea249476cb28c4611d09 100644 (file)
                 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));