Skip to content

Commit 97310f8

Browse files
committed
fix static root directory
1 parent 5816a34 commit 97310f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/public/public.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"time"
1515

1616
"code.gitea.io/gitea/modules/setting"
17+
1718
"github.com/gin-gonic/gin"
1819
)
1920

@@ -44,7 +45,7 @@ type staticFileSystem struct {
4445

4546
func newStaticFileSystem(directory string) staticFileSystem {
4647
if !filepath.IsAbs(directory) {
47-
directory = filepath.Join(setting.StaticRootPath, directory)
48+
directory = filepath.Join(setting.AppWorkPath, directory)
4849
}
4950
dir := http.Dir(directory)
5051
return staticFileSystem{&dir}

0 commit comments

Comments
 (0)