diff options
Diffstat (limited to 'internal/route/org/setting.go')
-rw-r--r-- | internal/route/org/setting.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/route/org/setting.go b/internal/route/org/setting.go index 366a0f6b..aecd8643 100644 --- a/internal/route/org/setting.go +++ b/internal/route/org/setting.go @@ -9,12 +9,12 @@ import ( log "unknwon.dev/clog/v2" + "gogs.io/gogs/internal/conf" "gogs.io/gogs/internal/context" "gogs.io/gogs/internal/db" "gogs.io/gogs/internal/db/errors" "gogs.io/gogs/internal/form" "gogs.io/gogs/internal/route/user" - "gogs.io/gogs/internal/setting" ) const ( @@ -63,7 +63,7 @@ func SettingsPost(c *context.Context, f form.UpdateOrgSetting) { return } // reset c.org.OrgLink with new name - c.Org.OrgLink = setting.AppSubURL + "/org/" + f.Name + c.Org.OrgLink = conf.Server.Subpath + "/org/" + f.Name log.Trace("Organization name changed: %s -> %s", org.Name, f.Name) } // In case it's just a case change. @@ -130,7 +130,7 @@ func SettingsDelete(c *context.Context) { } } else { log.Trace("Organization deleted: %s", org.Name) - c.Redirect(setting.AppSubURL + "/") + c.Redirect(conf.Server.Subpath + "/") } return } @@ -143,7 +143,7 @@ func Webhooks(c *context.Context) { c.Data["PageIsSettingsHooks"] = true c.Data["BaseLink"] = c.Org.OrgLink c.Data["Description"] = c.Tr("org.settings.hooks_desc") - c.Data["Types"] = setting.Webhook.Types + c.Data["Types"] = conf.Webhook.Types ws, err := db.GetWebhooksByOrgID(c.Org.Organization.ID) if err != nil { |