Skip to content

Commit 1f539f0

Browse files
committed
Set the default type of the storage section
The default STORAGE_TYPE should be the provided type. Fix go-gitea#13286 Signed-off-by: Andrew Thornton <[email protected]>
1 parent 65dc4d0 commit 1f539f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/setting/storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func getStorage(name, typ string, overrides ...*ini.Section) Storage {
4646

4747
var storage Storage
4848

49-
storage.Type = sec.Key("STORAGE_TYPE").MustString("")
49+
storage.Type = sec.Key("STORAGE_TYPE").MustString(typ)
5050
storage.ServeDirect = sec.Key("SERVE_DIRECT").MustBool(false)
5151

5252
// Global Defaults

0 commit comments

Comments
 (0)