UI compatibility
This commit is contained in:
parent
b6f8b486c7
commit
75cbb32b1e
10 changed files with 25 additions and 30 deletions
File diff suppressed because one or more lines are too long
|
@ -180,12 +180,7 @@ func Contexter() macaron.Handler {
|
|||
Session: sess,
|
||||
}
|
||||
// Compute current URL for real-time change language.
|
||||
link := setting.AppSubUrl + ctx.Req.RequestURI
|
||||
i := strings.Index(link, "?")
|
||||
if i > -1 {
|
||||
link = link[:i]
|
||||
}
|
||||
ctx.Data["Link"] = link
|
||||
ctx.Data["Link"] = setting.AppSubUrl + ctx.Req.URL.Path
|
||||
|
||||
ctx.Data["PageStartTime"] = time.Now()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue