diff --git a/synchro/synchro_exec.php b/synchro/synchro_exec.php index 457a6452b..562d07e66 100644 --- a/synchro/synchro_exec.php +++ b/synchro/synchro_exec.php @@ -28,12 +28,13 @@ // - reconciliation is made on the first column // // Known issues -// - ALMOST impossible to troubleshoot when an externl key has a wrong value +// - ALMOST impossible to troubleshoot when an external key has a wrong value // - no character escaping in the xml output (yes !?!?!) // - not outputing xml when a wrong input is given (class, attribute names) // -require_once('../approot.inc.php'); +if (!defined('__DIR__')) define('__DIR__', dirname(__FILE__)); +require_once(__DIR__.'/../approot.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/webpage.class.inc.php'); require_once(APPROOT.'/application/csvpage.class.inc.php'); diff --git a/synchro/synchro_import.php b/synchro/synchro_import.php index 720c28734..586803ddc 100644 --- a/synchro/synchro_import.php +++ b/synchro/synchro_import.php @@ -28,7 +28,8 @@ // - reconciliation is made on the column primary_key // -require_once('../approot.inc.php'); +if (!defined('__DIR__')) define('__DIR__', dirname(__FILE__)); +require_once(__DIR__.'/../approot.inc.php'); require_once(APPROOT.'/application/application.inc.php'); require_once(APPROOT.'/application/webpage.class.inc.php'); require_once(APPROOT.'/application/csvpage.class.inc.php');