mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
typos in error messages
This commit is contained in:
parent
16354b467e
commit
b0fde1df77
2 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ if(!file_exists($settingsFilename)) {
|
||||||
if(file_put_contents("peppermint.json", json_encode($settings, JSON_PRETTY_PRINT)) === false) {
|
if(file_put_contents("peppermint.json", json_encode($settings, JSON_PRETTY_PRINT)) === false) {
|
||||||
http_response_code(503);
|
http_response_code(503);
|
||||||
header("content-type: text/plain");
|
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
|
else
|
||||||
|
|
|
@ -13,7 +13,7 @@ if(!file_exists($paths->extra_data_directory) ||
|
||||||
filemtime(__FILE__) > filemtime($paths->extra_data_directory)
|
filemtime(__FILE__) > filemtime($paths->extra_data_directory)
|
||||||
|| is_directory_empty($paths->extra_data_directory)) {
|
|| is_directory_empty($paths->extra_data_directory)) {
|
||||||
|
|
||||||
$error_message_help = "<p>Have you checked that PHP has write access to the directory that <code>index.php</code> is located in (and all it's contents and subdirectories)? Try <code>sudo chown USERNAME:USERNAME -R path/to/directory</code> and <code>sudo chmod -R 0644 path/to/directory; sudo chmod -R +X path/too/directory</code>, where <code>USERNAME</code> is the username that the PHP process is running under.</p>";
|
$error_message_help = "<p>Have you checked that PHP has write access to the directory that <code>index.php</code> is located in (and all it's contents and subdirectories)? Try <code>sudo chown USERNAME:USERNAME -R path/to/directory</code> and <code>sudo chmod -R 0644 path/to/directory; sudo chmod -R +X path/to/directory</code>, where <code>USERNAME</code> is the username that the PHP process is running under.</p>";
|
||||||
|
|
||||||
if(file_exists($paths->extra_data_directory))
|
if(file_exists($paths->extra_data_directory))
|
||||||
delete_recursive($paths->extra_data_directory, false);
|
delete_recursive($paths->extra_data_directory, false);
|
||||||
|
|
Loading…
Reference in a new issue