-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev/cloud-native/issues#18: Soften messages for read-only extensionsDir #12623
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -453,16 +453,16 @@ public function checkDirsWritable() { | |
if (!empty($notWritable)) { | ||
$messages[] = new CRM_Utils_Check_Message( | ||
__FUNCTION__, | ||
ts('The %1 is not writable. Please check your file permissions.', array( | ||
ts('The %1 is not writable. Writing to Settings file has been disabled by admin. Please check your file permissions.', array( | ||
1 => implode(', ', $notWritable), | ||
'count' => count($notWritable), | ||
'plural' => 'The following directories are not writable: %1. Please check your file permissions.', | ||
'plural' => 'The following directories are not writable: %1. Writing to Settings file has been disabled by admin. Please check your file permissions.', | ||
)), | ||
ts('Directory not writable', array( | ||
'count' => count($notWritable), | ||
'plural' => 'Directories not writable', | ||
)), | ||
\Psr\Log\LogLevel::ERROR, | ||
\Psr\Log\LogLevel::NOTICE, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should remain an |
||
'fa-ban' | ||
); | ||
} | ||
|
@@ -564,7 +564,7 @@ public function checkExtensions() { | |
ts('Your extensions directory (%1) is read-only. If you would like to perform downloads or upgrades, then change the file permissions.', | ||
array(1 => $basedir)), | ||
ts('Read-Only Extensions'), | ||
\Psr\Log\LogLevel::WARNING, | ||
\Psr\Log\LogLevel::NOTICE, | ||
'fa-plug' | ||
); | ||
return $messages; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with @eileenmcnaughton that this text "writing to Settings file has been disabled by admin" is confusing. This warning can appear in several situations, but I don't think any of them involve writing to a settings file.