diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-07-28 15:02:01 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-07-28 15:02:01 +0300 |
commit | d72834883fbfbe84d0596c9aa306b34c6d08c707 (patch) | |
tree | 4fd79f6a41a6086d0d35719d14eaa1aca71c25c0 /mod | |
parent | 915988225227ba3f300739b3655a6b4c01c3c46c (diff) |
Adapt to butl::path refactoring
Diffstat (limited to 'mod')
-rw-r--r-- | mod/mod-package-version-details.cxx | 2 | ||||
-rw-r--r-- | mod/page.cxx | 11 |
2 files changed, 8 insertions, 5 deletions
diff --git a/mod/mod-package-version-details.cxx b/mod/mod-package-version-details.cxx index 80a87ef..ccd81c5 100644 --- a/mod/mod-package-version-details.cxx +++ b/mod/mod-package-version-details.cxx @@ -243,7 +243,7 @@ handle (request& rq, response& rs) } else if (p->internal ()) { - path u (root / path (ename)); + dir_path u (root / dir_path (ename)); s << A(HREF=u) << dname << ~A; if (dcon) diff --git a/mod/page.cxx b/mod/page.cxx index 2ebbe7b..79b5da5 100644 --- a/mod/page.cxx +++ b/mod/page.cxx @@ -27,12 +27,14 @@ namespace brep { // CSS_LINKS // + static const dir_path css_path ("@"); + void CSS_LINKS:: operator() (serializer& s) const { - static const path css ("@"); - - s << *LINK(REL="stylesheet", TYPE="text/css", HREF=root_ / css / path_); + s << *LINK(REL="stylesheet", + TYPE="text/css", + HREF=root_ / css_path / path_); } // DIV_HEADER @@ -146,7 +148,8 @@ namespace brep else { assert (root_ != nullptr); - s << A(HREF=*root_ / path (mime_url_encode (*package_)) / path (version_)) + s << A(HREF=*root_ / dir_path (mime_url_encode (*package_)) / + path (version_)) << version_ << ~A; } |