From b0fde1df773b7f54963670c733b0b879abba0c77 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 19 Aug 2024 21:29:30 +0100 Subject: [PATCH] typos in error messages --- core/01-settings.fragment.php | 2 +- core/07-unpack.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/01-settings.fragment.php b/core/01-settings.fragment.php index a3930ba..766ae23 100644 --- a/core/01-settings.fragment.php +++ b/core/01-settings.fragment.php @@ -42,7 +42,7 @@ if(!file_exists($settingsFilename)) { if(file_put_contents("peppermint.json", json_encode($settings, JSON_PRETTY_PRINT)) === false) { http_response_code(503); header("content-type: text/plain"); - exit("Oops! It looks like $settings->sitename wasn't able to write peppermint.json to disk.\nThis file contains all of $settings->sitename's settings, so it's really important!\nHave you checked that PHP has write access to the directory that index.php is located in (and all it's contents and subdirectories)? Try\n\nsudo chown USERNAME:USERNAME -R path/to/directory\n\nand\n\nsudo chmod -R 0644 path/to/directory;\nsudo chmod -R +X path/too/directory\n\n....where USERNAME is the username that the PHP process is running under."); + exit("Oops! It looks like $settings->sitename wasn't able to write peppermint.json to disk.\nThis file contains all of $settings->sitename's settings, so it's really important!\nHave you checked that PHP has write access to the directory that index.php is located in (and all it's contents and subdirectories)? Try\n\nsudo chown USERNAME:USERNAME -R path/to/directory\n\nand\n\nsudo chmod -R 0644 path/to/directory;\nsudo chmod -R +X path/to/directory\n\n....where USERNAME is the username that the PHP process is running under."); } } else diff --git a/core/07-unpack.php b/core/07-unpack.php index 40a6481..a34f0af 100644 --- a/core/07-unpack.php +++ b/core/07-unpack.php @@ -13,7 +13,7 @@ if(!file_exists($paths->extra_data_directory) || filemtime(__FILE__) > filemtime($paths->extra_data_directory) || is_directory_empty($paths->extra_data_directory)) { - $error_message_help = "

Have you checked that PHP has write access to the directory that index.php is located in (and all it's contents and subdirectories)? Try sudo chown USERNAME:USERNAME -R path/to/directory and sudo chmod -R 0644 path/to/directory; sudo chmod -R +X path/too/directory, where USERNAME is the username that the PHP process is running under.

"; + $error_message_help = "

Have you checked that PHP has write access to the directory that index.php is located in (and all it's contents and subdirectories)? Try sudo chown USERNAME:USERNAME -R path/to/directory and sudo chmod -R 0644 path/to/directory; sudo chmod -R +X path/to/directory, where USERNAME is the username that the PHP process is running under.

"; if(file_exists($paths->extra_data_directory)) delete_recursive($paths->extra_data_directory, false);