// Handle zip upload
$uploaded = new ZipArchive();
$uploaded->open($_FILES['file']['tmp_name']);
- $data = simplexml_load_string(str_replace('&', '&', $uploaded->getFromName('data.xml')));
+ $data = simplexml_load_string(str_replace('&', '&', $uploaded->getFromName('data.xml')), 'SimpleXMLElement', LIBXML_NOCDATA);
if (!$data) {
return self::ipGlobal(__('Erreur lors de l\'analyse du fichier XML'));
}
file_put_contents($repos . '/images/' . $image, $imagecontent);
}
$html .= '<img src="images/' . $image . '" alt="' . $title . '" id="image-' . $id . '" usemap="#map-' . $id . '">';
- $html .= '<map name="map-' . $id . '">' . $shelf->map->asXML() . '</map>';
+ $html .= '<map name="map-' . $id . '">' . (string)$shelf->map . '</map>';
$html .= '</div>';
}
$html .= '</div>';