diff --git a/html/admin/setup.php b/html/admin/setup.php index 5fb5f1186..3123eeaf2 100644 --- a/html/admin/setup.php +++ b/html/admin/setup.php @@ -175,13 +175,13 @@ echo ' '; exit(); } -if ( ! file_exists('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php')) { - /* if the config file is not found we propose to create one */ - if ( is_writable ('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'constant.php') == false ) { +if ( is_writable ('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'constant.php') == false ) { echo '
On ne peut pas écrire dans le répertoire de phpcompta, changez-en les droits
'; exit(); } - create_htaccess(); +create_htaccess(); + +if ( ! file_exists('..'.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'config.inc.php')) { echo ''; exit(); } - create_htaccess(); + //---------------------------------------------------------------------- // End functions //