Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

hotfix : $zip->statIndex(0)['name'] should be set in variable before #13

Merged
merged 1 commit into from Jan 23, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/ZFTool/Controller/CreateController.php
Expand Up @@ -50,7 +50,8 @@ public function projectAction()

$zip = new \ZipArchive;
if ($zip->open($tmpFile)) {
$tmpSkeleton = $tmpDir . '/' . rtrim($zip->statIndex(0)['name'], "/");
$stateIndex0 = $zip->statIndex(0);
$tmpSkeleton = $tmpDir . '/' . rtrim($stateIndex0['name'], "/");
if (!$zip->extractTo($tmpDir)) {
return $this->sendError("Error during the unzip of $tmpFile.");
}
Expand Down