From c7da6f6bf427995e13ca209e44fa48531d501514 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 21 Apr 2016 00:28:44 +0100 Subject: Fix xpaths for category descriptions --- gentoobrowse-api/service/maintenance/categoryMetaProcessor.cpp | 6 +++--- 1 file 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(); } -- cgit v1.2.3