aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-06-15 11:43:57 +0800
committerGitHub <noreply@github.com>2024-06-15 11:43:57 +0800
commit84cbb6c4d2ad57dc8816c0320eac061f753b50c1 (patch)
tree5151b8cdb3d2311f6a6995aa04f90f8272ee471b /modules/setting/setting.go
parent23147494a789d77cbf187d3ddcca44b772370f26 (diff)
downloadgitea-84cbb6c4d2ad57dc8816c0320eac061f753b50c1.tar.gz
gitea-84cbb6c4d2ad57dc8816c0320eac061f753b50c1.zip
Fix duplicate sub-path for avatars (#31365)
Fix #31361, and add tests And this PR introduces an undocumented & debug-purpose-only config option: `USE_SUB_URL_PATH`. It does nothing for end users, it only helps the development of sub-path related problems. And also fix #31366 Co-authored-by: @ExplodingDragon
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r--modules/setting/setting.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index f056fbfc6c..b4f913cdae 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -25,12 +25,7 @@ var (
// AppStartTime store time gitea has started
AppStartTime time.Time
- // Other global setting objects
-
CfgProvider ConfigProvider
- RunMode string
- RunUser string
- IsProd bool
IsWindows bool
// IsInTesting indicates whether the testing is running. A lot of unreliable code causes a lot of nonsense error logs during testing