From af4a27a7f6c66c9be32f53eb6fbc3190a0092fe8 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 31 May 2015 14:55:48 -0400 Subject: Fix bug: add missing file extension for screenshot filename --- app/Model/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Model/File.php') 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); -- cgit v1.2.3