From 5715daa8aa851c1dfbde29fc062bfa8089feb529 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 25 Mar 2016 09:16:10 +0100 Subject: [PATCH] Extension : fix path --- include/class/class_extension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class/class_extension.php b/include/class/class_extension.php index eafad7fd3..06c3ab17e 100644 --- a/include/class/class_extension.php +++ b/include/class/class_extension.php @@ -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 */