Skip to content

Commit 7f647da

Browse files
committed
Extension manager: when url given, don't try to use upload, too
1 parent 6e855e1 commit 7f647da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/plugins/extension/admin.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ public function handle()
6262
}
6363
if ($INPUT->post->str('installurl')) {
6464
$installer->installFromURL($INPUT->post->str('installurl'));
65-
}
66-
if (isset($_FILES['installfile'])) {
65+
} elseif (isset($_FILES['installfile'])) {
6766
$installer->installFromUpload('installfile');
6867
}
6968
} catch (Exception $e) {

0 commit comments

Comments
 (0)