mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-22 03:37:25 +08:00
Fixing a bug in the journal by working around the fact that IStorageFile:OpenWrite() doesn't let you specify an opening mode for the underlying stream.
--HG-- branch : recipe
This commit is contained in:
@@ -104,6 +104,7 @@ namespace Orchard.Recipes.Services {
|
||||
using (var stream = journalFile.OpenWrite()) {
|
||||
using (var tw = new StreamWriter(stream)) {
|
||||
tw.Write(content);
|
||||
stream.SetLength(stream.Position);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user