Handler: queryOption: Take default sort order param. History: default descending

This commit is contained in:
2020-12-31 16:15:36 +01:00
parent b9ff4068bd
commit 0c66fdf70d
3 changed files with 13 additions and 6 deletions

View File

@@ -21,7 +21,7 @@ class Handler
// TODO: may not to find a better place for this method
Permissions effectivePermissions(std::string page);
QueryOption queryOption(const Request &r) const;
QueryOption queryOption(const Request &r, SORT_ORDER defaultSort = ASCENDING) const;
public:
Handler(HandlerConfig &handlersConfig, Template &templ, Database &db, Session &userSession, UrlProvider &provider,