diff --git a/formidable_options.php b/formidable_options.php index c34a0ccbff554289492041425024878e3677f5b1..2d87899bdc6e7d1450c8c194d84cc72f09a81b9c 100644 --- a/formidable_options.php +++ b/formidable_options.php @@ -45,3 +45,13 @@ if (!function_exists('array_fill_keys')) { array_combine($keys, array_fill(0, count($keys), $value)); } } + +/* Lieux de stockages des fichiers, qu'on définit ici pour pouvoir l'utiliser en squelette +*/ +if (!defined('_DIR_FICHIERS')) { // En attendant que ce soit natif spip + define('_DIR_FICHIERS', _DIR_ETC.'fichiers/'); +} + +if (!defined('_DIR_FICHIERS_FORMIDABLE')) { + define('_DIR_FICHIERS_FORMIDABLE', _DIR_FICHIERS.'formidable/'); +} diff --git a/inc/formidable_fichiers.php b/inc/formidable_fichiers.php index 3cbf9bcca698671b52a0cb34a8e3675a848a3fbe..a626877df636c3b81869e7ba02d25efcc226edc6 100644 --- a/inc/formidable_fichiers.php +++ b/inc/formidable_fichiers.php @@ -6,13 +6,6 @@ if (!defined('_ECRIRE_INC_VERSION')) { } include_spip('inc/flock'); include_spip('inc/documents'); -if (!defined('_DIR_FICHIERS')) { // En attendant que ce soit natif spip - define('_DIR_FICHIERS', _DIR_ETC.'fichiers/'); -} - -if (!defined('_DIR_FICHIERS_FORMIDABLE')) { - define('_DIR_FICHIERS_FORMIDABLE', _DIR_FICHIERS.'formidable/'); -} if (!defined('_FORMIDABLE_EXPIRATION_FICHIERS_EMAIL')) { // Combien de temps un lien par email dans fichier est valable (en seconde) define('_FORMIDABLE_EXPIRATION_FICHIERS_EMAIL', 24*3600); diff --git a/paquet.xml b/paquet.xml index 1a3e4ae0bd3312ecf2877e7d0303ffc8ed718623..efedb92a76f1855f51f0b22e7ab342010091f4be 100644 --- a/paquet.xml +++ b/paquet.xml @@ -1,7 +1,7 @@ <paquet prefix="formidable" categorie="communication" - version="3.3.3" + version="3.3.4" etat="stable" compatibilite="[3.0.0;3.1.*]" logo="images/formidable-64.png"