Skip to content
Snippets Groups Projects
Commit 1fe395a8 authored by Claudiu Cristea's avatar Claudiu Cristea
Browse files

ISAICP-9052: Test dir creation by Apache.

parent ff164255
No related branches found
Tags v1.112.0
No related merge requests found
......@@ -463,6 +463,11 @@ function joinup_core_page_attachments(array &$attachments): void {
// As Joinup uses multiple themes, we pass the active theme to the page to be
// used in various contexts.
$attachments['#attached']['drupalSettings']['theme'] = \Drupal::theme()->getActiveTheme()->getName();
// Remove after v1.112.0, in ISAICP-9045.
if (!is_dir('private://switch')) {
\Drupal::getContainer()->get('file_system')->mkdir('private://switch');
\Drupal::logger('php')->info('private://switch ' . fileperms('private://switch') . ' - ' . fileowner('private://switch') . ' - ' . filegroup('private://switch'));
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment