summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-04-21 00:28:44 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-04-25 21:27:48 +0100
commitc7da6f6bf427995e13ca209e44fa48531d501514 (patch)
treeafccd1b25fffc5af8d91a3694e9d7249d8d67085
parentAdd textclean function (diff)
downloadgentoobrowse-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.cpp6
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();
}