|
@@ 343-350 (lines=8) @@
|
| 340 |
|
$info1 = $infos[$dir_type][$plug]; |
| 341 |
|
// si des plugins sont necessaires, |
| 342 |
|
// on ne peut inserer qu'apres eux |
| 343 |
|
foreach($info1['necessite'] as $need){ |
| 344 |
|
$nom = strtoupper($need['nom']); |
| 345 |
|
$compat = isset($need['compatibilite']) ? $need['compatibilite'] : ''; |
| 346 |
|
if (!isset($liste[$nom]) OR !plugin_version_compatible($compat,$liste[$nom]['version'])) { |
| 347 |
|
$info1 = false; |
| 348 |
|
break; |
| 349 |
|
} |
| 350 |
|
} |
| 351 |
|
if (!$info1) continue; |
| 352 |
|
// idem si des plugins sont utiles, |
| 353 |
|
// sauf si ils sont de toute facon absents de la liste |
|
@@ 354-364 (lines=11) @@
|
| 351 |
|
if (!$info1) continue; |
| 352 |
|
// idem si des plugins sont utiles, |
| 353 |
|
// sauf si ils sont de toute facon absents de la liste |
| 354 |
|
foreach($info1['utilise'] as $need){ |
| 355 |
|
$nom = strtoupper($need['nom']); |
| 356 |
|
$compat = isset($need['compatibilite']) ? $need['compatibilite'] : ''; |
| 357 |
|
if (isset($toute_la_liste[$nom])) { |
| 358 |
|
if (!isset($liste[$nom]) OR |
| 359 |
|
!plugin_version_compatible($compat, $liste[$nom]['version'])) { |
| 360 |
|
$info1 = false; |
| 361 |
|
break; |
| 362 |
|
} |
| 363 |
|
} |
| 364 |
|
} |
| 365 |
|
if ($info1) { |
| 366 |
|
$ordre[$p] = $info1; |
| 367 |
|
$liste[$p] = $liste_non_classee[$p]; |