summaryrefslogtreecommitdiffstats
path: root/api4/brand.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/brand.go')
-rw-r--r--api4/brand.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api4/brand.go b/api4/brand.go
index bc1ddd2cc..ef4ea25b5 100644
--- a/api4/brand.go
+++ b/api4/brand.go
@@ -22,7 +22,7 @@ func InitBrand() {
func getBrandImage(c *Context, w http.ResponseWriter, r *http.Request) {
// No permission check required
- if img, err := app.GetBrandImage(); err != nil {
+ if img, err := c.App.GetBrandImage(); err != nil {
w.WriteHeader(http.StatusNotFound)
w.Write(nil)
} else {
@@ -60,7 +60,7 @@ func uploadBrandImage(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
- if err := app.SaveBrandImage(imageArray[0]); err != nil {
+ if err := c.App.SaveBrandImage(imageArray[0]); err != nil {
c.Err = err
return
}