Fix bug: add missing file extension for screenshot filename

This commit is contained in:
Frederic Guillot 2015-05-31 14:55:48 -04:00
parent 3f3363c177
commit af4a27a7f6
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ class File extends Base
return false;
}
$original_filename = e('Screenshot taken %s', dt('%B %e, %Y at %k:%M %p', time()));
$original_filename = e('Screenshot taken %s', dt('%B %e, %Y at %k:%M %p', time())).'.png';
$destination_filename = $this->generatePath($project_id, $task_id, $original_filename);
@mkdir(FILES_DIR.dirname($destination_filename), 0755, true);