Task #1610 - Problème dans le menu «installation»
#0001610: Problème dans le menu «installation»
This commit is contained in:
parent
c22e77ca06
commit
9029b48a78
4 changed files with 58 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue