Skip to content
Snippets Groups Projects

Merging develop into main

Merged jurgenhaas requested to merge develop into main
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
+ 4
1
@@ -139,10 +139,13 @@ class Handler extends BaseHandler {
$file = $projectRoot . '/settings/default/' . $template;
$link = $webRoot . '/sites/default/' . $template;
$rendered = $this->config->render($template, file_get_contents($pluginRoot . '/templates/' . $template . '.twig'));
if (file_exists($file)) {
$fs->chmod($file, 0664);
}
file_put_contents($file, $rendered);
$rel = substr($fs->makePathRelative($file, $projectRoot . '/' . $link), 3, -1);
$fs->symlink($rel, $link);
$fs->chmod($file, 0664);
$fs->chmod($file, 0444);
if ($this->config->readValue('chg-acl')) {
$fs->chgrp($file, $this->config->readValue('webserver-groupname'));
}
Loading