Fix bug: add missing file extension for screenshot filename
This commit is contained in:
@@ -304,7 +304,7 @@ class File extends Base
|
|||||||
return false;
|
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);
|
$destination_filename = $this->generatePath($project_id, $task_id, $original_filename);
|
||||||
|
|
||||||
@mkdir(FILES_DIR.dirname($destination_filename), 0755, true);
|
@mkdir(FILES_DIR.dirname($destination_filename), 0755, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user