Webpage import tool works again after setting iconfig properly and following the Impel class function example. More testing is needed.

This commit is contained in:
Andrew Manning
2017-02-11 20:52:06 -05:00
parent bc3605a502
commit 8ff9ad7636
2 changed files with 20 additions and 14 deletions

View File

@@ -288,6 +288,7 @@ class Webpages extends \Zotlabs\Web\Controller {
if ($zip->open($source) === true) {
$tmp_folder_name = random_string(5);
$website = dirname($source) . '/' . $tmp_folder_name;
logger($website ,LOGGER_DEBUG);
$zip->extractTo($website); // change this to the correct site path
$zip->close();
@unlink($source); // delete the compressed file now that the content has been extracted