Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phragment/controller/PhragmentZIPController.php
| Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | try { | ||||
| $dialog->setTitle(pht('ZIP Extension Not Installed')); | $dialog->setTitle(pht('ZIP Extension Not Installed')); | ||||
| $dialog->appendParagraph($inst); | $dialog->appendParagraph($inst); | ||||
| $dialog->addCancelButton('/phragment/browse/'.$this->dblob); | $dialog->addCancelButton('/phragment/browse/'.$this->dblob); | ||||
| return id(new AphrontDialogResponse())->setDialog($dialog); | return id(new AphrontDialogResponse())->setDialog($dialog); | ||||
| } | } | ||||
| if (!$zip->open((string)$temp, ZipArchive::CREATE)) { | if (!$zip->open((string)$temp, ZipArchive::CREATE)) { | ||||
| throw new Exception('Unable to create ZIP archive!'); | throw new Exception(pht('Unable to create ZIP archive!')); | ||||
| } | } | ||||
| $mappings = $this->getFragmentMappings($fragment, $fragment->getPath()); | $mappings = $this->getFragmentMappings($fragment, $fragment->getPath()); | ||||
| $phids = array(); | $phids = array(); | ||||
| foreach ($mappings as $path => $file_phid) { | foreach ($mappings as $path => $file_phid) { | ||||
| $phids[] = $file_phid; | $phids[] = $file_phid; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines | |||||