Fix loading overridden translations from ${DataFolder}/resources/i18n

This commit is contained in:
Deluan
2022-02-10 14:48:41 -05:00
parent 50ff8bcce7
commit 028723f721
5 changed files with 17 additions and 21 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ func (c *MediaRetrievalController) GetAvatar(w http.ResponseWriter, r *http.Requ
}
func (c *MediaRetrievalController) getPlaceHolderAvatar(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error) {
f, err := resources.FS.Open(consts.PlaceholderAvatar)
f, err := resources.FS().Open(consts.PlaceholderAvatar)
if err != nil {
log.Error(r, "Image not found", err)
return nil, newError(responses.ErrorDataNotFound, "Avatar image not found")