X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FModule%2FAdmin%2FSummary.php;h=6261ac75caf937057c7ffacf8906726e013d4b8e;hb=3c7e4b474b8f219b7ddacfd2c948d49628aafa81;hp=98fd74fb32da214ab0af8d5b08c12a5dc4401a7c;hpb=c1366e23fb7782b232aa72216b046e59348abd13;p=friendica.git diff --git a/src/Module/Admin/Summary.php b/src/Module/Admin/Summary.php index 98fd74fb32..6261ac75ca 100644 --- a/src/Module/Admin/Summary.php +++ b/src/Module/Admin/Summary.php @@ -74,6 +74,23 @@ class Summary extends BaseAdminModule $well_known, $well_known, $a->getBaseURL() . '/help/Install'); } + // Check logfile permission + if (Config::get('system', 'debugging')) { + $stream = Config::get('system', 'logfile'); + + if (is_file($stream) && + !is_writeable($stream)) { + $warningtext[] = L10n::t('The logfile \'%s\' is not writable. No logging possible', $stream); + } + + $stream = Config::get('system', 'dlogfile'); + + if (is_file($stream) && + !is_writeable($stream)) { + $warningtext[] = L10n::t('The logfile \'%s\' is not writable. No logging possible', $stream); + } + } + // check legacy basepath settings $configLoader = new ConfigFileLoader($a->getBasePath(), $a->getMode()); $configCache = new Config\Cache\ConfigCache();