admin/sync: theme's name is now part of the theme's dirname

This commit is contained in:
nemunaire 2018-07-13 07:25:21 +02:00 committed by Pierre-Olivier Mercier
commit 9ab5738cff
5 changed files with 37 additions and 24 deletions

View file

@ -163,7 +163,7 @@ func createTheme(_ httprouter.Params, body []byte) (interface{}, error) {
return nil, errors.New("Theme's name not filled")
}
return fic.CreateTheme(ut.Name, ut.URLId, ut.Authors, ut.Intro)
return fic.CreateTheme(ut.Name, ut.URLId, "", ut.Authors, ut.Intro)
}
func updateTheme(theme fic.Theme, body []byte) (interface{}, error) {