From 9b1138b80b9e6ded0d372f9f70595da7f172d8b0 Mon Sep 17 00:00:00 2001 From: partydragen Date: Fri, 18 Oct 2024 16:12:36 +0200 Subject: [PATCH] Revert is_writable should be negative Now error is show when the folders is successfully writeable! Revert the change from https://github.com/NamelessMC/Nameless/pull/3534 https://github.com/NamelessMC/Nameless/issues/3480 --- core/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/init.php b/core/init.php index 7c2857aa72..2e367c500b 100644 --- a/core/init.php +++ b/core/init.php @@ -38,7 +38,7 @@ ]; foreach ($writable_check_paths as $path) { - if (is_dir($path) && is_writable($path)) { + if (is_dir($path) && !is_writable($path)) { $message = '

Your website directory or a subdirectory is not writable. Please ensure all files and directories are owned by the correct user.

';