| Line 92... |
Line 92... |
| 92 |
if (isset($this->traitement['script']) && $this->traitement['script'] == 'versionnage') {
|
92 |
if (isset($this->traitement['script']) && $this->traitement['script'] == 'versionnage') {
|
| 93 |
$meta = unserialize($this->traitement['script_parametres']);
|
93 |
$meta = unserialize($this->traitement['script_parametres']);
|
| 94 |
$projet = strtolower($this->traitement['referentiel_code']);
|
94 |
$projet = strtolower($this->traitement['referentiel_code']);
|
| 95 |
$version = str_replace('.', '_', $meta['version']);
|
95 |
$version = str_replace('.', '_', $meta['version']);
|
| 96 |
$fichier_zip_bdnt = $projet.'_v'.$version.'.zip';
|
96 |
$fichier_zip_bdnt = $projet.'_v'.$version.'.zip';
|
| 97 |
$fichier_zip_partiel = $projet.'_v'.$version.'_partiel.zip';
|
- |
|
| 98 |
$url_zip_bdnt = sprintf(Config::get('url_zip_tpl'), $fichier_zip_bdnt);
|
97 |
$url_zip_bdnt = sprintf(Config::get('url_zip_tpl'), $fichier_zip_bdnt);
|
| 99 |
if ($this->testerUrl($url_zip_bdnt)) {
|
98 |
if ($this->testerUrl($url_zip_bdnt)) {
|
| 100 |
$urls_zip[$fichier_zip_bdnt] = $url_zip_bdnt;
|
99 |
$urls_zip[$fichier_zip_bdnt] = $url_zip_bdnt;
|
| 101 |
}
|
100 |
}
|
| - |
|
101 |
|
| - |
|
102 |
$fichier_zip_partiel_ancien = $projet.'_v'.$version.'_partiel.zip';
|
| - |
|
103 |
$url_zip_partiel_ancienne = sprintf(Config::get('url_zip_tpl'), $fichier_zip_partiel_ancien);
|
| - |
|
104 |
$fichier_zip_partiel = $projet.'_v'.$version.$this->manuel['suffixe_partiel'].'.zip';
|
| 102 |
$url_zip_partiel = sprintf(Config::get('url_zip_tpl'), $fichier_zip_partiel);
|
105 |
$url_zip_partiel = sprintf(Config::get('url_zip_tpl'), $fichier_zip_partiel);
|
| 103 |
if ($this->testerUrl($url_zip_partiel)) {
|
106 |
if ($this->testerUrl($url_zip_partiel)) {
|
| 104 |
$urls_zip[$fichier_zip_partiel] = $url_zip_partiel;
|
107 |
$urls_zip[$fichier_zip_partiel] = $url_zip_partiel;
|
| - |
|
108 |
} else if ($this->testerUrl($url_zip_partiel_ancienne)) {
|
| - |
|
109 |
$urls_zip[$fichier_zip_partiel_ancien] = $url_zip_partiel_ancienne;
|
| 105 |
}
|
110 |
}
|
| - |
|
111 |
|
| 106 |
}
|
112 |
}
|
| 107 |
return $urls_zip;
|
113 |
return $urls_zip;
|
| 108 |
}
|
114 |
}
|
| Line 109... |
Line 115... |
| 109 |
|
115 |
|