protected function isInstallDirWritable(&$report)
{
$root = Directory\Local::root()->getPath();
$abs_path = \Elgg\Application::elggDir()->getPath('elgg-config');
if (0 === strpos($abs_path, $root)) {
$relative_path = substr($abs_path, strlen($root));
} else {
$relative_path = $abs_path;
}
$relative_path = rtrim($relative_path, '/\\');
$writable = is_writable(Directory\Local::root()->getPath('elgg-config'));
if (!$writable) {
$report['settings'] = array(array('severity' => 'failure', 'message' => _elgg_services()->translator->translate('install:check:installdir', [$relative_path])));
return FALSE;
}
return TRUE;
}