diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-15 13:38:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-15 13:38:57 +0200 |
commit | ef9615aebb8a7b504c3b5cd2610e3c8f5bb4de58 (patch) | |
tree | aca0be97a87005f177d0e015f132b117726cfe12 /brep/package-search.cxx | |
parent | d43e00ba64a5332100a8a2330d251051302b0193 (diff) |
Various cleanups and improvements, INSTALL-DEV instructions
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 |