From: dongsheng Date: Mon, 20 Apr 2009 08:59:00 +0000 (+0000) Subject: "MDL-16548, fix file area path problem" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=547d5c078bda43108b339ec9b3232d44f1b62e30;p=moodle.git "MDL-16548, fix file area path problem" --- diff --git a/repository/upload/repository.class.php b/repository/upload/repository.class.php index 1ed3ae4e44..b20007c1d7 100755 --- a/repository/upload/repository.class.php +++ b/repository/upload/repository.class.php @@ -26,7 +26,7 @@ class repository_upload extends repository { parent::__construct($repositoryid, $context, $options); $itemid = optional_param('itemid', '', PARAM_INT); if($action=='upload'){ - $filepath = '/'.uniqid().'/'; + $filepath = '/'; $this->info = repository::store_to_filepool('repo_upload_file', 'user_draft', $filepath, $itemid); } }