summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-05-08 16:27:25 +0200
committerGitHub <noreply@github.com>2021-05-08 16:27:25 +0200
commit24ad131221d8cb0becf726e0570f53838262edf1 (patch)
treea06648e4fd6b051eaca60513b63ba3fe69314cd1 /modules
parente2786147539909eaef2bc39fb728a10b88277d31 (diff)
downloadgitea-24ad131221d8cb0becf726e0570f53838262edf1.tar.gz
gitea-24ad131221d8cb0becf726e0570f53838262edf1.zip
Rename StaticUrlPrefix to AssetUrlPrefix (#15779)
Use a new name for this template/frontend variable to make it distinct from the server variable StaticURLPrefix.
Diffstat (limited to 'modules')
-rw-r--r--modules/templates/helper.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 8f1362afc4..fed15d67d6 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -60,7 +60,7 @@ func NewFuncMap() []template.FuncMap {
"AppSubUrl": func() string {
return setting.AppSubURL
},
- "StaticUrlPrefix": func() string {
+ "AssetUrlPrefix": func() string {
return setting.StaticURLPrefix + "/assets"
},
"AppUrl": func() string {