@@ 120-123 (lines=4) @@ | ||
117 | throw new PluginInstallerException(t('Unable to download plugin archive.')); |
|
118 | } |
|
119 | ||
120 | if (file_put_contents($archiveFile, $archiveData) === false) { |
|
121 | unlink($archiveFile); |
|
122 | ||
123 | throw new PluginInstallerException(t('Unable to write temporary file for plugin.')); |
|
124 | } |
|
125 | ||
126 | if ($zip->open($archiveFile) !== true) { |
|
@@ 126-129 (lines=4) @@ | ||
123 | throw new PluginInstallerException(t('Unable to write temporary file for plugin.')); |
|
124 | } |
|
125 | ||
126 | if ($zip->open($archiveFile) !== true) { |
|
127 | unlink($archiveFile); |
|
128 | ||
129 | throw new PluginInstallerException(t('Unable to open plugin archive.')); |
|
130 | } |
|
131 | ||
132 | if ($zip->numFiles === 0) { |