Task #1610 - Problème dans le menu «installation»

#0001610: Problème dans le menu «installation»
This commit is contained in:
Dany De Bontridder 2018-07-17 10:01:22 +02:00
parent c22e77ca06
commit 9029b48a78
4 changed files with 58 additions and 2 deletions

View file

@ -35,6 +35,18 @@ require_once NOALYSS_INCLUDE.'/class/extension.class.php';
*/
$package_repository=new Package_Repository();
$xml=$package_repository->getContent();
/*
* If xml is null , it means it was not possible to get the file , could be
* a network problem or a misconfiguration
*/
if ( $xml == NULL) {
echo '<h2 class="error">';
printf (_("Désolé , impossible de se connecter au serveur %s"),
NOALYSS_PACKAGE_REPOSITORY);
echo '</h2>';
return;
}
$a_plugin=$xml->xpath('//plugins/plugin');
$nb_plugin=count($a_plugin);