diff --git a/backup/restorelib.php b/backup/restorelib.php
index <HASH>..<HASH> 100644
--- a/backup/restorelib.php
+++ b/backup/restorelib.php
@@ -10,7 +10,7 @@
         $status = true;
 
         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);
             if (!$list = $archive->extract(dirname($file))) {
                 $status = false;
Chanfed to locate the pclzip properly.