Skip to content

Commit

Permalink
Merge pull request #11895 from totten/master-ext-check
Browse files Browse the repository at this point in the history
CRM_Utils_Check - Soften messages for read-only extensionsDir
  • Loading branch information
eileenmcnaughton committed Mar 29, 2018
2 parents c700d5a + 599164f commit db5c67e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions CRM/Utils/Check/Component/Env.php
Expand Up @@ -413,7 +413,6 @@ public function checkDirsWritable() {
'uploadDir' => ts('Temporary Files Directory'),
'imageUploadDir' => ts('Images Directory'),
'customFileUploadDir' => ts('Custom Files Directory'),
'extensionsDir' => ts('CiviCRM Extensions Directory'),
);

foreach ($directories as $directory => $label) {
Expand Down Expand Up @@ -582,10 +581,10 @@ public function checkExtensions() {
elseif (!is_writable($basedir)) {
$messages[] = new CRM_Utils_Check_Message(
__FUNCTION__,
ts('Directory %1 is not writable. Please change your file permissions.',
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('Directory not writable'),
\Psr\Log\LogLevel::ERROR,
ts('Read-Only Extensions'),
\Psr\Log\LogLevel::WARNING,
'fa-plug'
);
return $messages;
Expand Down

0 comments on commit db5c67e

Please sign in to comment.