Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Use correct temp directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
philcali committed May 1, 2012
1 parent 1d984c1 commit 741a645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ static function draft_cleanup($itemid) {
static function process_attachments($context, $email, $table, $id) {
global $CFG, $USER;

$base_path = "temp/block_quickmail/{$USER->id}";
$moodle_base = "$CFG->dataroot/$base_path";
$base_path = "block_quickmail/{$USER->id}";
$moodle_base = "$CFG->tempdir/$base_path";

if (!file_exists($moodle_base)) {
mkdir($moodle_base, $CFG->directorypermissions, true);
Expand Down

0 comments on commit 741a645

Please sign in to comment.