Extension : fix path

This commit is contained in:
Dany De Bontridder 2016-03-25 09:16:10 +01:00
parent b38e10d2ce
commit 5715daa8aa

View file

@ -48,7 +48,7 @@ class Extension extends Menu_Ref_sql
if (trim($this->me_code)=="") throw new Exception('Le code ne peut pas être vide');
if (trim($this->me_menu)=="") throw new Exception('Le nom ne peut pas être vide');
if (trim($this->me_file)=="") throw new Exception('Chemin incorrect');
if (file_exists('..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'ext'.DIRECTORY_SEPARATOR.$this->me_file) == false)
if (file_exists(NOALYSS_PLUGIN.'/'.$this->me_file) == false)
throw new Exception ('Extension non trouvée, le chemin est-il correct?');
}
/*!@brief search a extension, the what is the column (extends_code */