Page render html takes only the neccessary arguments

This commit is contained in:
Henrique Dias committed 2017-06-27 09:40:33 +01:00
1 parent 2df4efc369
commit 3b3643be05
3 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@ func serveListing(w http.ResponseWriter, r *http.Request, c *FileManager, u *Use
Data: listing,
}
return p.PrintAsHTML(w, c, "listing")
return p.PrintAsHTML(w, c.assets.templates, "listing")
}
// handleSortOrder gets and stores for a Listing the 'sort' and 'order',