Skip to content
Snippets Groups Projects
Commit 90b201c8 authored by Florent Jousseaume's avatar Florent Jousseaume Committed by Samuel Mortenson
Browse files

Issue #2951558 by Florent Jousseaume: Fix requirements check when using symlinks.

parent 716c18f8
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,8 @@ https://github.com/desandro/masonry/releases and place it in /libraries'
}
// Prevent installation if the webserver cannot write to "public://" .
if (!\Drupal::isConfigSyncing() && !is_writable('public://')) {
$public_path = \Drupal::service('file_system')->realpath('public://');
if (!\Drupal::isConfigSyncing() && !is_writable($public_path)) {
$requirements['public_files_not_writable'] = [
'title' => t('Public files directory not writable'),
'description' => t('The webserver needs to be able to write to the public files directory (public://). Please check your server configuration and try again.'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment