From a9c720659d18e8ca4d3023f008f5efd25040d806 Mon Sep 17 00:00:00 2001 From: Oleg Gatseluk Date: Mon, 31 Mar 2014 09:36:43 +0300 Subject: [PATCH] Uploading new plugins via the admin panel #215 --- plugins/box/plugins/plugins.admin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/box/plugins/plugins.admin.php b/plugins/box/plugins/plugins.admin.php index b69cca5..61ca7ce 100755 --- a/plugins/box/plugins/plugins.admin.php +++ b/plugins/box/plugins/plugins.admin.php @@ -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';