mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-04 12:17:42 +02:00
Uploading new plugins via the admin panel #215
This commit is contained in:
@@ -128,7 +128,7 @@ class PluginsAdmin extends Backend
|
||||
if ($_FILES['file']) {
|
||||
if (in_array(File::ext($_FILES['file']['name']), array('zip'))) {
|
||||
|
||||
$tmp_dir = sys_get_temp_dir() . uniqid('monstra_');
|
||||
$tmp_dir = ROOT . DS .'tmp'. DS . uniqid('plugin_');
|
||||
|
||||
$error = 'Plugin was not uploaded';
|
||||
|
||||
|
Reference in New Issue
Block a user