Skip to content

Commit

Permalink
fileserver: Fix browse namedirfirst sorting
Browse files Browse the repository at this point in the history
This commit fixes the `sortByNameDirFirst` variable inside fileserver to
match what browse's default template has.
  • Loading branch information
diamondburned committed Jul 6, 2021
1 parent 885a9aa commit ab13df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/caddyhttp/fileserver/browsetplcontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func (l byTime) Less(i, j int) bool { return l.Items[i].ModTime.Before(l.Items[j

const (
sortByName = "name"
sortByNameDirFirst = "name_dir_first"
sortByNameDirFirst = "namedirfirst"
sortBySize = "size"
sortByTime = "time"
)

0 comments on commit ab13df0

Please sign in to comment.