diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-04-21 00:28:44 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-04-25 21:27:48 +0100 |
commit | c7da6f6bf427995e13ca209e44fa48531d501514 (patch) | |
tree | afccd1b25fffc5af8d91a3694e9d7249d8d67085 | |
parent | Add textclean function (diff) | |
download | gentoobrowse-api-c7da6f6bf427995e13ca209e44fa48531d501514.tar.bz2 gentoobrowse-api-c7da6f6bf427995e13ca209e44fa48531d501514.tar.xz gentoobrowse-api-c7da6f6bf427995e13ca209e44fa48531d501514.zip |
Fix xpaths for category descriptions
-rw-r--r-- | gentoobrowse-api/service/maintenance/categoryMetaProcessor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gentoobrowse-api/service/maintenance/categoryMetaProcessor.cpp b/gentoobrowse-api/service/maintenance/categoryMetaProcessor.cpp index 93c08f0..cd4cdfe 100644 --- a/gentoobrowse-api/service/maintenance/categoryMetaProcessor.cpp +++ b/gentoobrowse-api/service/maintenance/categoryMetaProcessor.cpp @@ -25,9 +25,9 @@ namespace Gentoo { { U::XmlDoc md(path); U::Database::bindOptionalsS(m, 0, { - md.getXPathValue("/catmetadata/longdescription[@lang='en']"), - md.getXPathValue("/catmetadata/longdescription[1]") - }); + md.getXPathValue("/catmetadata/longdescription[@lang='en']/text()"), + md.getXPathValue("/catmetadata/longdescription[1]/text()") + }); m->bindParamS(1, (fn / 1).string()); m->execute(); } |