Fix thesaurus candidate terms xml creation

This commit is contained in:
Nicolas Le Goff
2015-03-06 15:08:48 +01:00
committed by Mathieu Darse
parent ed3ffb59a6
commit 95243763f2

View File

@@ -887,7 +887,10 @@ class databox extends base
public function saveCterms(DOMDocument $dom_cterms)
{
if (null === $dom_cterms->documentElement) {
$cterms = $dom_cterms->createElement('cterms');
$dom_cterms->appendChild($cterms);
}
$dom_cterms->documentElement->setAttribute("modification_date", $now = date("YmdHis"));
$sql = "UPDATE pref SET value = :xml, updated_on = :date