mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix missing profile icon (#10469)
This commit is contained in:
parent
3ecec8e0d2
commit
a4972f44ad
@ -157,11 +157,11 @@ func NewCacheServer() *CacheServer {
|
|||||||
func newNotFound() *Avatar {
|
func newNotFound() *Avatar {
|
||||||
avatar := &Avatar{notFound: true}
|
avatar := &Avatar{notFound: true}
|
||||||
|
|
||||||
// load transparent png into buffer
|
// load user_profile png into buffer
|
||||||
path := filepath.Join(setting.StaticRootPath, "img", "transparent.png")
|
path := filepath.Join(setting.StaticRootPath, "img", "user_profile.png")
|
||||||
|
|
||||||
if data, err := ioutil.ReadFile(path); err != nil {
|
if data, err := ioutil.ReadFile(path); err != nil {
|
||||||
log.Error(3, "Failed to read transparent.png, %v", path)
|
log.Error(3, "Failed to read user_profile.png, %v", path)
|
||||||
} else {
|
} else {
|
||||||
avatar.data = bytes.NewBuffer(data)
|
avatar.data = bytes.NewBuffer(data)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user