diff options
Diffstat (limited to 'brep/package-search.cxx')
-rw-r--r-- | brep/package-search.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/brep/package-search.cxx b/brep/package-search.cxx index 62b162b..448a915 100644 --- a/brep/package-search.cxx +++ b/brep/package-search.cxx @@ -37,7 +37,7 @@ init (scanner& s) if (options_->root ().empty ()) options_->root (dir_path ("/")); - db_ = shared_database (options_->db_host (), options_->db_port ()); + db_ = shared_database (*options_); } template <typename T> @@ -138,7 +138,7 @@ handle (request& rq, response& rs) t.commit (); - s << DIV_PAGER (page, pkg_count, res_page, options_->pager_pages (), + s << DIV_PAGER (page, pkg_count, res_page, options_->search_pages (), root.string () + squery_param) << ~DIV << ~BODY |