]> git.agnieray.net Git - galette.git/commitdiff
Fix cache directory check at install
authorJohan Cwiklinski <johan@x-tnd.be>
Mon, 19 Feb 2024 08:50:02 +0000 (09:50 +0100)
committerJohan Cwiklinski <johan@x-tnd.be>
Mon, 19 Feb 2024 09:21:46 +0000 (10:21 +0100)
refs #1787

galette/install/steps/check.php

index 87f6d4eda3a3e3948fd76dc2190f341527d650fa..614246bf6d411ae0c6284402c70eac7c429e9e24 100644 (file)
@@ -66,8 +66,8 @@ $perms_ok = true;
 $files_need_rw = array(
     _T("Compilation")       => GALETTE_COMPILE_DIR,
     _T("Photos")            => GALETTE_PHOTOS_PATH,
-    _T("Cache")             => GALETTE_CACHE_DIR,
-    _T("Temporary images")   => GALETTE_TEMPIMAGES_PATH,
+    _T("Cache")             => str_replace(GALETTE_VERSION, '', GALETTE_CACHE_DIR),
+    _T("Temporary images")  => GALETTE_TEMPIMAGES_PATH,
     _T("Configuration")     => GALETTE_CONFIG_PATH,
     _T("Exports")           => GALETTE_EXPORTS_PATH,
     _T("Imports")           => GALETTE_IMPORTS_PATH,