Skip to content

Commit

Permalink
MDL-23984 using standard check_dir_exists() in community block
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Aug 29, 2010
1 parent a085278 commit ab4aa56
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions blocks/community/locallib.php
Expand Up @@ -86,9 +86,7 @@ public function block_community_download_course_backup($course) {
$params['courseid'] = $course->id;
$params['filetype'] = HUB_BACKUP_FILE_TYPE;

if (!file_exists($CFG->dataroot.'/temp/backup')) {
mkdir($CFG->dataroot.'/temp/backup/', 0777, true);
}
check_dir_exists($CFG->dataroot.'/temp/backup');

$filename = md5(time() . '-' . $course->id . '-'. $USER->id . '-'. random_string(20));

Expand Down

0 comments on commit ab4aa56

Please sign in to comment.