Fix theme importation

This commit is contained in:
Némunaire 2013-11-08 21:19:39 +01:00
parent 61965f79a8
commit 327781e996

View File

@ -19,7 +19,10 @@ if (!empty($_FILES["inputFile"]['tmp_name']))
if (!is_null($elements)) if (!is_null($elements))
{ {
foreach ($elements as $element) foreach ($elements as $element)
$theme->title = $element->nodeValue; {
if ($element->nodeName == "title")
$theme->name = $element->nodeValue;
}
} }
// Insert thema into BDD // Insert thema into BDD