|
@@ -88,16 +88,12 @@ class AppearanceImPortForm extends Form implements LazyRenderable
|
|
|
if ($deleteDirectoryContents) {
|
|
|
return ['status' => false, 'error' => $deleteDirectoryContents];
|
|
|
}
|
|
|
-
|
|
|
|
|
|
$items = scandir($extractPath);
|
|
|
- var_dump($items);exit;
|
|
|
|
|
|
$items = array_diff($items, ['.', '..']);
|
|
|
-
|
|
|
-
|
|
|
|
|
|
- if (count($items) != 1 || !is_dir($extractPath . '\\' . reset($items))) {
|
|
|
+ if (count($items) != 1) {
|
|
|
return ['status' => false, 'error' => "Error: unzip file does not contain exactly one folder."];
|
|
|
}
|
|
|
|