diff --git a/inc/inc.ClassExtensionMgr.php b/inc/inc.ClassExtensionMgr.php index fa5cb7c70..146ae72cb 100644 --- a/inc/inc.ClassExtensionMgr.php +++ b/inc/inc.ClassExtensionMgr.php @@ -260,14 +260,14 @@ $EXT_CONF = '.var_export($EXT_CONF, true).';'); unlink ($destination); } - $zip = new ZipArchive(); - if (!$zip->open($destination, ZIPARCHIVE::CREATE)) { + $zip = new \ZipArchive(); + if (!$zip->open($destination, \ZipArchive::CREATE)) { return false; } $source = str_replace('\\', '/', realpath($source)); if (is_dir($source) === true) { - $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($source), RecursiveIteratorIterator::SELF_FIRST); + $files = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($source), \RecursiveIteratorIterator::SELF_FIRST); if ($include_dir) { $arr = explode("/",$source); @@ -328,7 +328,7 @@ $EXT_CONF = '.var_export($EXT_CONF, true).';'); $tmpfile = $this->cachedir."/".$extname."-".$version.".zip"; } - if(!SeedDMS_Extension_Mgr::Zip($this->extdir."/".$extname, $tmpfile)) { + if(!ExtensionMgr::Zip($this->extdir."/".$extname, $tmpfile)) { return false; } // $cmd = "cd ".$this->extdir."/".$extname."; zip -r ".$tmpfile." ."; @@ -525,7 +525,7 @@ $EXT_CONF = '.var_export($EXT_CONF, true).';'); $this->errmsgs[] = "Cannot create temp. extension directory"; return false; } - $zip = new ZipArchive; + $zip = new \ZipArchive; $res = $zip->open($file); if ($res === TRUE) { $zip->extractTo($newdir); @@ -590,7 +590,7 @@ $EXT_CONF = '.var_export($EXT_CONF, true).';'); * single lines. Each line is either a comment if it starts with an '#' * or a json encoded array containing the extension configuration. * - * Run SeedDMS_Extension_Mgr::updateExtensionList() to ensure the + * Run Seeddms\Seeddms\ExtensionMgr::updateExtensionList() to ensure the * currently cached extension list file is up to date. * * @return string[] list of json strings or comments @@ -610,7 +610,7 @@ $EXT_CONF = '.var_export($EXT_CONF, true).';'); * a list of extension configurations. Only the most recent version * of an extension will be included. * - * Run SeedDMS_Extension_Mgr::updateExtensionList() to ensure the + * Run Seeddms\Seeddms\ExtensionMgr::updateExtensionList() to ensure the * currently cached extension list file is up to date. * * @return array[] list of extension configurations @@ -641,7 +641,7 @@ $EXT_CONF = '.var_export($EXT_CONF, true).';'); * a list of extension configurations. Only those extensions will * be included which maches the given name. * - * Run SeedDMS_Extension_Mgr::updateExtensionList() to ensure the + * Run Seeddms\Seeddms\ExtensionMgr::updateExtensionList() to ensure the * currently cached extension list file is up to date. * * @return array[] list of extension configurations @@ -657,7 +657,7 @@ $EXT_CONF = '.var_export($EXT_CONF, true).';'); } } } - uksort($result, function($a, $b){return SeedDMS_Extension_Mgr::cmpVersion($b, $a);}); + uksort($result, function($a, $b){return ExtensionMgr::cmpVersion($b, $a);}); return $result; } /* }}} */