diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-05-31 14:55:48 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-05-31 14:55:48 -0400 |
commit | af4a27a7f6c66c9be32f53eb6fbc3190a0092fe8 (patch) | |
tree | e2bc4db633372c39f6b565d96b24327a54ee8936 /app | |
parent | 3f3363c1776d4f2eca227696521c3877accd9138 (diff) |
Fix bug: add missing file extension for screenshot filename
Diffstat (limited to 'app')
-rw-r--r-- | app/Model/File.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Model/File.php b/app/Model/File.php index 16bf079e..1f62a55e 100644 --- a/app/Model/File.php +++ b/app/Model/File.php @@ -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); |