Use __DIR__

This commit is contained in:
Michael RICOIS 2014-10-16 17:55:14 +00:00
parent a5ae94f769
commit 9bb9ad9cc7

View File

@ -638,8 +638,8 @@ function calculIndiScore($siren, $nic=0, $accesDist=false, $cycleClient=2, $mail
$classWdate = new WDate();
//Initialisation tabFormules depuis le cache
$tabVariables = include realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'Variables/CacheTabVariables.php';
$tabFormules = include realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'Variables/CacheTabFormules.php';
$tabVariables = include __DIR__ . '/Variables/CacheTabVariables.php';
$tabFormules = include __DIR__ . '/Variables/CacheTabFormules.php';
$tabFormulesRatios = array();
foreach ($tabFormules as $tmpFormule) {
$tabFormulesRatios[$tmpFormule['id']] = $tmpFormule;