aboutsummaryrefslogtreecommitdiff
path: root/brep/package-details.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-15 13:38:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-12-15 13:38:57 +0200
commitef9615aebb8a7b504c3b5cd2610e3c8f5bb4de58 (patch)
treeaca0be97a87005f177d0e015f132b117726cfe12 /brep/package-details.cxx
parentd43e00ba64a5332100a8a2330d251051302b0193 (diff)
Various cleanups and improvements, INSTALL-DEV instructions
Diffstat (limited to 'brep/package-details.cxx')
-rw-r--r--brep/package-details.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/brep/package-details.cxx b/brep/package-details.cxx
index 30e185e..a10f668 100644
--- a/brep/package-details.cxx
+++ b/brep/package-details.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>
@@ -160,7 +160,7 @@ handle (request& rq, response& rs)
if (const auto& d = pkg->description)
s << (full
? P_DESCRIPTION (*d, id)
- : P_DESCRIPTION (*d, options_->description_len (),
+ : P_DESCRIPTION (*d, options_->package_description (),
url (!full, squery, page, id)));
s << TABLE(CLASS="proplist", ID="package")
@@ -232,7 +232,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 (),
url (full, squery))
<< ~DIV
<< ~BODY