1
0
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:
Oleg Gatseluk
2014-03-31 09:36:43 +03:00
parent 6c68b1023c
commit a9c720659d

View File

@@ -128,7 +128,7 @@ class PluginsAdmin extends Backend
if ($_FILES['file']) { if ($_FILES['file']) {
if (in_array(File::ext($_FILES['file']['name']), array('zip'))) { 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'; $error = 'Plugin was not uploaded';