Fixed issue #1.
This commit is contained in:
parent
a0040870a9
commit
f349e9fe26
@ -92,7 +92,7 @@ Class InstallManager extends CoordinationObj
|
||||
$ftp=$this->getData("ftp");
|
||||
$login=$this->getData("login");
|
||||
$passwd=$this->getData("passwd");
|
||||
$connection =new ftp($ftp,$login,$passwd);
|
||||
$connection =new ftp($ftp, $login, $passwd);
|
||||
$backup =new backup();
|
||||
$cache_time =null;
|
||||
|
||||
@ -147,15 +147,17 @@ Class InstallManager extends CoordinationObj
|
||||
for($i=0; $i<count($tabpatch); $i++){
|
||||
$tabTmp[]=$tabpatch[$i]["nom"];
|
||||
}
|
||||
|
||||
|
||||
// on verifie que les éléments sont uploadés ou non...
|
||||
$tabDownload=$backup->getContentDir($GLOBALS["CONF_DATA_PATH"]."data/upload/install/packagesrc/");
|
||||
$tabDownLoadCp=array();
|
||||
for($i=0;$i<count($tabDownload);$i++)
|
||||
if( $tabDownload=$backup->getContentDir($GLOBALS["CONF_DATA_PATH"]."data/upload/install/packagesrc/") )
|
||||
{
|
||||
if (strpos($tabDownload[$i][2], ".tar")!==false)
|
||||
$tabDownLoadCp[]=substr($tabDownload[$i][2], 0, (strlen($tabDownload[$i][2])-4));
|
||||
}
|
||||
$tabDownLoadCp=array();
|
||||
for($i=0;$i<count($tabDownload);$i++)
|
||||
{
|
||||
if (strpos($tabDownload[$i][2], ".tar")!==false)
|
||||
$tabDownLoadCp[]=substr($tabDownload[$i][2], 0, (strlen($tabDownload[$i][2])-4));
|
||||
}
|
||||
}
|
||||
|
||||
//Teste de l'existence des packages et telechargement si on les possede pas deja
|
||||
$nb=count($tabPackage);
|
||||
|
Loading…
Reference in New Issue
Block a user