From 07f2f340ec1356562855342440297b50f8ac6856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 8 Jan 2019 00:02:52 +0100 Subject: Remove tmp from spip links --- virtual/packages/spip_mes_options.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'virtual/packages/spip_mes_options.php') diff --git a/virtual/packages/spip_mes_options.php b/virtual/packages/spip_mes_options.php index 88ac449..8db8389 100644 --- a/virtual/packages/spip_mes_options.php +++ b/virtual/packages/spip_mes_options.php @@ -3,14 +3,15 @@ // http://www.spip.net/fr_article3811.html $config_dir = getenv('SPIP_CONFIG_DIR') . '/'; +$var_dir = getenv('SPIP_VAR_DIR') . '/'; -$cookie_prefix = str_replace('.', '_', $site); +$cookie_prefix = str_replace('.', '_', getenv("SPIP_SITE")); $table_prefix = 'spip'; spip_initialisation( $config_dir, _DIR_RACINE . _NOM_PERMANENTS_ACCESSIBLES, - _DIR_RACINE . _NOM_TEMPORAIRES_INACCESSIBLES, + $var_dir . _NOM_TEMPORAIRES_INACCESSIBLES, _DIR_RACINE . _NOM_TEMPORAIRES_ACCESSIBLES ); -- cgit v1.2.3