Fix theme importation
This commit is contained in:
parent
61965f79a8
commit
327781e996
1 changed files with 4 additions and 1 deletions
|
|
@ -19,7 +19,10 @@ if (!empty($_FILES["inputFile"]['tmp_name']))
|
|||
if (!is_null($elements))
|
||||
{
|
||||
foreach ($elements as $element)
|
||||
$theme->title = $element->nodeValue;
|
||||
{
|
||||
if ($element->nodeName == "title")
|
||||
$theme->name = $element->nodeValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Insert thema into BDD
|
||||
|
|
|
|||
Reference in a new issue