Fix theme importation
This commit is contained in:
parent
61965f79a8
commit
327781e996
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user