Fix some stuff

This commit is contained in:
Henrique Dias
2017-08-20 09:23:02 +01:00
parent 20818dca93
commit 921cc2f930
3 changed files with 7 additions and 3 deletions
+4
View File
@@ -188,6 +188,7 @@ func handler() http.Handler {
Rules: []*filemanager.Rule{},
Locale: viper.GetString("Locale"),
CSS: "",
Scope: viper.GetString("Scope"),
FileSystem: fileutils.Dir(viper.GetString("Scope")),
},
Store: &filemanager.Store{
@@ -195,6 +196,9 @@ func handler() http.Handler {
Users: bolt.UsersStore{DB: db},
Share: bolt.ShareStore{DB: db},
},
NewFS: func(scope string) filemanager.FileSystem {
return fileutils.Dir(scope)
},
}
err = fm.Load()