Gestion des versions de moteur sphinx
This commit is contained in:
parent
c81e9751b7
commit
a2ee313f39
@ -708,7 +708,21 @@ class MLiens {
|
||||
'pctMin' => $pctMin,
|
||||
'pctMax' => $pctMax,
|
||||
);
|
||||
return rechercheAct($formR, $deb, $nbRep, $maxRep);
|
||||
|
||||
$version = 1;
|
||||
switch($version)
|
||||
{
|
||||
case 1:
|
||||
require_once 'Metier/sphinx/rechercheFonc.php';
|
||||
$result = rechercheAct($formR, $deb, $nbRep, $maxRep);
|
||||
break;
|
||||
case 2:
|
||||
require_once 'Metier/sphinx2/rechercheFonc.php';
|
||||
$recherche = new rechercheFonc();
|
||||
$result = $recherche->rechercheAct($formR, $deb, $nbRep, $maxRep);
|
||||
break;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
/** Retourne les informations relatives au groupe du siren donné
|
||||
|
Loading…
x
Reference in New Issue
Block a user