unexport page

Former-commit-id: 1ba9608a9c
This commit is contained in:
Henrique Dias committed 2017-06-25 13:00:33 +01:00
1 parent 7b33975f7b
commit a4fe27a6d6
5 files changed
+98 -108

No files matched your search

+9 -11
View File
@@ -77,20 +77,18 @@ func serveListing(w http.ResponseWriter, r *http.Request, c *FileManager, u *use
Secure: r.TLS != nil,
})
page := &Page{
p := &page{
Minimal: r.Header.Get("Minimal") == "true",
PageInfo: &PageInfo{
Name: listing.Name,
Path: i.VirtualPath,
IsDir: true,
User: u,
Config: c,
Display: displayMode,
Data: listing,
},
Name: listing.Name,
Path: i.VirtualPath,
IsDir: true,
User: u,
Config: c,
Display: displayMode,
Data: listing,
}
return page.PrintAsHTML(w, "listing")
return p.PrintAsHTML(w, "listing")
}
// handleSortOrder gets and stores for a Listing the 'sort' and 'order',