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
commita3559e5aebd1f7e338316bb21dd98d405642a681 (patch)
treeafccd1b25fffc5af8d91a3694e9d7249d8d67085
parentAdd textclean function (diff)
downloadgentoobrowse-api-a3559e5aebd1f7e338316bb21dd98d405642a681.tar.bz2
gentoobrowse-api-a3559e5aebd1f7e338316bb21dd98d405642a681.tar.xz
gentoobrowse-api-a3559e5aebd1f7e338316bb21dd98d405642a681.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();
}